Changeset 5100


Ignore:
Timestamp:
Nov 24, 2021 12:36:36 PM (2 years ago)
Author:
toby
Message:

make sure excludeMode is initialized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r5090 r5100  
    501501        Set a flag (Page.plotInvalid) that it has been redrawn
    502502        Record the name of the this plot in self.lastRaisedPlotTab
     503
     504        :param str label: title of plot
     505        :param str Type: determines the type of plot that will be opened.
     506          'mpl' for 2D graphs in matplotlib
     507          'ogl' for openGL
     508          '3d' for 3D plotting in matplotlib
     509        :param bool newImage: forces creation of a new graph for matplotlib
     510          plots only (defaults as True)
     511        :param function publish: reference to routine used to create a
     512          publication version of the current mpl plot (default is None,
     513          which prevents use of this).
     514        :returns: new,plotNum,Page,Plot,limits where
     515          * new: will be True if the tab was just created
     516          * plotNum: is the tab number
     517          * Page: is the subclassed wx.Panel (:class:`G2PlotMpl`, etc.) where
     518            the plot appears
     519          * Plot: the mpl.Axes object for the graphic (mpl) or the figure for
     520            openGL.
     521          * limits: for mpl plots, when a plot already exists, this will be a tuple
     522            with plot scaling. None otherwise.
    503523        '''
    504524        limits = None
     
    507527            new = False
    508528            plotNum,Page = self.GetTabIndex(label)
    509             if Type == 'mpl' or Type == '3d': 
     529            if Type == 'mpl' or Type == '3d':
    510530                Axes = Page.figure.get_axes()
    511531                Plot = Page.figure.gca()          #get previous plot
     
    533553
    534554        Page.plotInvalid = False # plot has just been drawn
     555        Page.excludeMode = False
    535556        self.lastRaisedPlotTab = label
    536557        self.RaisePageNoRefresh(Page)
Note: See TracChangeset for help on using the changeset viewer.