Changeset 17919


Ignore:
Timestamp:
05/02/14 10:23:35 (11 years ago)
Author:
cborstad
Message:

CHG: add option to easily turn tick labels off

Location:
issm/trunk-jpl/src/m/plot
Files:
2 edited

Legend:

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

    r17880 r17919  
    107107
    108108        #xticklabels,yticklabels,zticklabels {{{
     109        if options.getfieldvalue('ticklabels','off')=='off' or options.getfieldvalue('ticklabels',0)==0:
     110                options.addfielddefault('xticklabels',[])
     111                options.addfielddefault('yticklabels',[])
     112                # TODO check if ax has a z-axis (e.g. is 3D)
    109113        if options.exist('xticklabels'):
    110114                xticklabels=options.getfieldvalue('xticklabels')
  • issm/trunk-jpl/src/m/plot/plotmodel.py

    r17893 r17919  
    5454        if numberofplots:
    5555               
    56                 if not hold: # TODO need to also check whether figurenumber is a new plot so that old plots are not mistakenly cleared
     56                if plt.fignum_exists(figurenumber):
    5757                        plt.cla()
    5858
Note: See TracChangeset for help on using the changeset viewer.