Changeset 1120 in lmdz_wrf for trunk/tools/drawing_tools.py


Ignore:
Timestamp:
Sep 30, 2016, 3:41:47 PM (8 years ago)
Author:
lfita
Message:

Adding `fmtcolorbar': format of the numbers in the color bar 'C'-like ('auto' for %6g) in 'draw_2D_shad'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r1119 r1120  
    37773777
    37783778def plot_2D_shadow(varsv,vnames,dimxv,dimyv,dimxu,dimyu,dimn,          \
    3779   colorbar,vs,uts,vtit,kfig,reva,mapv,ifclose):
     3779  colorbar,cbarfmt,vs,uts,vtit,kfig,reva,mapv,ifclose):
    37803780    """ Adding labels and other staff to the graph
    37813781      varsv= 2D values to plot with shading
     
    37853785      dimn= dimension names to plot
    37863786      colorbar= name of the color bar to use
     3787      cbarfmt= format of the numbers in the colorbar
    37873788      vs= minmum and maximum values to plot in shadow or:
    37883789        'Srange': for full range
     
    40004001
    40014002    plt.pcolormesh(x, y, varsv, cmap=plt.get_cmap(colorbar), vmin=vsend[0], vmax=vsend[1])
    4002     cbar = plt.colorbar()
     4003    cbar = plt.colorbar(format=cbarfmt)
    40034004
    40044005    if not mapv is None:
Note: See TracChangeset for help on using the changeset viewer.