Changeset 1117 in lmdz_wrf for trunk


Ignore:
Timestamp:
Sep 23, 2016, 3:54:24 PM (8 years ago)
Author:
lfita
Message:

Adding:

  • `K/day' in 'units_lunits'
  • format printing tick labels in axes of plot_2D_shadow
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1089 r1117  
    17631763        elif u == 'Ks-1': lu='$Ks^{-1}$'
    17641764        elif u == 'K s-1': lu='$Ks^{-1}$'
     1765        elif u == 'K/day': lu='$Kday^{-1}$'
     1766        elif u == 'Kday-1': lu='$Kday^{-1}$'
     1767        elif u == 'K day-1': lu='$Kday^{-1}$'
    17651768        elif u == 'kg/kg': lu='$kgkg^{-1}$'
    17661769        elif u == 'kgkg-1': lu='$kgkg^{-1}$'
     
    40214024    typos = pretty_int(y.min(),y.max(),5)
    40224025    txlabels = list(txpos)
    4023     for i in range(len(txlabels)): txlabels[i] = str(txlabels[i])
     4026    for i in range(len(txlabels)): txlabels[i] = '{:6g}'.format(txlabels[i])
    40244027    tylabels = list(typos)
    4025     for i in range(len(tylabels)): tylabels[i] = str(tylabels[i])
     4028    for i in range(len(tylabels)): tylabels[i] = '{:6g}'.format(tylabels[i])
    40264029
    40274030# set the limits of the plot to the limits of the data
Note: See TracChangeset for help on using the changeset viewer.