Skip to content
Snippets Groups Projects
Commit 9e6b5621 authored by Victor Stepanenko's avatar Victor Stepanenko
Browse files

plot_hourly adapted to python3

parent 3674dd94
Branches
No related tags found
No related merge requests found
......@@ -21,14 +21,14 @@ font = {'family': 'serif',
plt.rc('font', **font)
plt.rc('text', usetex=True)
plt.rc('text.latex',unicode=True)
plt.rc('text.latex',preamble='\usepackage[utf8]{inputenc}')
plt.rc('text.latex',preamble='\usepackage[russian]{babel}')
plt.rc('text.latex',preamble=r'\usepackage[utf8]{inputenc}')
plt.rc('text.latex',preamble=r'\usepackage[russian]{babel}')
#path = ['../results/windforc_base/hourly/', \
# '../results/windforc_kor/hourly/', \
# '../results/windforc_dynpgrad4/hourly/'] # path to files
#path = ['../results/Mojai2016-2017_damw5/hourly/']#,'../results/Mojai2016-2017_damtribheat=0/hourly/']
path = ['../results/river/hourly/']
path = ['../results/windforc/hourly/']
year = int(input("Enter year \n"))
nm0 = int(input("Enter month \n"))
......@@ -311,7 +311,7 @@ for np in range(npaths):
line = fid.readline()
line = line.split()
depths[j] = abs(float(line[0]))
print k, line, ncol[k]
print (k, line, ncol[k])
vals[j] = float(line[ncol[k]-1])
#legenditems.append(varname[k] + u' (модель)') #+ ', ' +legendtime[i]+expnames[np])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment