Changeset 543 in lmdz_wrf for trunk/tools
- Timestamp:
- Jun 30, 2015, 1:22:07 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r540 r543 4035 4035 typos = pretty_int(y.min(),y.max(),5) 4036 4036 txlabels = list(txpos) 4037 for i in range(len(txlabels)): txlabels[i] = str(txlabels[i])4037 for i in range(len(txlabels)): txlabels[i] = '{:.1f}'.format(txlabels[i]) 4038 4038 tylabels = list(typos) 4039 for i in range(len(tylabels)): tylabels[i] = str(tylabels[i])4039 for i in range(len(tylabels)): tylabels[i] = '{:.1f}'.format(tylabels[i]) 4040 4040 4041 4041 # set the limits of the plot to the limits of the data … … 4048 4048 plt.axis([x.min(), x.max(), y.min(), y.max()]) 4049 4049 4050 plt.xticks(txpos, txlabels)4051 plt.yticks(typos, tylabels)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.