Changeset 544 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Jun 30, 2015, 1:23:21 PM (9 years ago)
Author:
lfita
Message:

Placing the 'extra' x/y ticks when wre do not have a map

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r543 r544  
    40324032        plt.ylabel(variables_values(dimn[0])[0] + ' (' + units_lunits(dimyu) + ')')
    40334033
    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)
    40404042
    40414043# set the limits of the plot to the limits of the data
     
    40484050        plt.axis([x.min(), x.max(), y.min(), y.max()])
    40494051
    4050 #    plt.xticks(txpos, txlabels)
    4051 #    plt.yticks(typos, tylabels)
    40524052
    40534053# units labels
Note: See TracChangeset for help on using the changeset viewer.