Changeset 544 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 30, 2015, 1:23:21 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r543 r544 4032 4032 plt.ylabel(variables_values(dimn[0])[0] + ' (' + units_lunits(dimyu) + ')') 4033 4033 4034 txpos = pretty_int(x.min(),x.max(),5) 4035 typos = pretty_int(y.min(),y.max(),5) 4036 txlabels = list(txpos) 4037 for i in range(len(txlabels)): txlabels[i] = '{:.1f}'.format(txlabels[i]) 4038 tylabels = list(typos) 4039 for i in range(len(tylabels)): tylabels[i] = '{:.1f}'.format(tylabels[i]) 4034 txpos = pretty_int(x.min(),x.max(),5) 4035 typos = pretty_int(y.min(),y.max(),5) 4036 txlabels = list(txpos) 4037 for i in range(len(txlabels)): txlabels[i] = '{:.1f}'.format(txlabels[i]) 4038 tylabels = list(typos) 4039 for i in range(len(tylabels)): tylabels[i] = '{:.1f}'.format(tylabels[i]) 4040 plt.xticks(txpos, txlabels) 4041 plt.yticks(typos, tylabels) 4040 4042 4041 4043 # set the limits of the plot to the limits of the data … … 4048 4050 plt.axis([x.min(), x.max(), y.min(), y.max()]) 4049 4051 4050 # plt.xticks(txpos, txlabels)4051 # plt.yticks(typos, tylabels)4052 4052 4053 4053 # units labels
Note: See TracChangeset
for help on using the changeset viewer.