Changeset 2755 in lmdz_wrf for trunk/tools


Ignore:
Timestamp:
Nov 12, 2019, 3:32:17 PM (5 years ago)
Author:
lfita
Message:

Fixing right position of bar labels in `plot_landuse'

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/drawing_tools.py

    r2754 r2755  
    1507615076
    1507715077    plt.pcolormesh(x,y,luv,cmap=cmap, vmin=1, vmax=Ncolors)
    15078     cbar = plt.colorbar(ticks=np.arange(Ncolors)+0.5)
     15078    ccs = np.arange(0.,Ncolors*1.,Ncolors*1/(Ncolors*1.+1.))
     15079    cbar = plt.colorbar(ticks=ccs+0.5)
    1507915080    cbar.ax.set_yticklabels(labs, fontsize=6)
    1508015081
Note: See TracChangeset for help on using the changeset viewer.