Ignore:
Timestamp:
11/29/16 02:48:25 (8 years ago)
Author:
aplach
Message:

plot_unit.py: fixed issue with continous colorbar when setting colorlevels; now both plot and colorbar are descrete if colorlevels are set in plotmodel()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_unit.py

    r21303 r21426  
    2929        # {{{ define wich colormap to use
    3030        try:
    31                 defaultmap=plt.cm.get_cmap('viridis')
     31                defaultmap=plt.cm.get_cmap('viridis',colorlevels)
    3232        except AttributeError:
    3333                print("Viridis can't be found (probably too old Matplotlib) reverting to gnuplot colormap")
Note: See TracChangeset for help on using the changeset viewer.