source: issm/oecreview/Archive/17802-17983/ISSM-17918-17919.diff@ 17986

Last change on this file since 17986 was 17986, checked in by Mathieu Morlighem, 11 years ago

New release

File size: 1.1 KB
  • ../trunk-jpl/src/m/plot/plotmodel.py

     
    5353        #Go through plots
    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
    5959                #if figsize specified
  • ../trunk-jpl/src/m/plot/applyoptions.py

     
    106106        #}}}
    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')
    111115                ax.set_xticklabels(xticklabels)
Note: See TracBrowser for help on using the repository browser.