Changeset 543 in lmdz_wrf for trunk/tools


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

removing extra xticks/yticks from 2Dfields_shadow-contour

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r540 r543  
    40354035    typos = pretty_int(y.min(),y.max(),5)
    40364036    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])
    40384038    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])
    40404040
    40414041# set the limits of the plot to the limits of the data
     
    40484048        plt.axis([x.min(), x.max(), y.min(), y.max()])
    40494049
    4050     plt.xticks(txpos, txlabels)
    4051     plt.yticks(typos, tylabels)
     4050#    plt.xticks(txpos, txlabels)
     4051#    plt.yticks(typos, tylabels)
    40524052
    40534053# units labels
Note: See TracChangeset for help on using the changeset viewer.