Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/qtgui/Plotting/PlotterBase.py

    r42787fb re30646ab  
    3838        # Define canvas for the figure to be placed on 
    3939        self.canvas = FigureCanvas(self.figure) 
    40  
    41         # ... and the toolbar with all the default MPL buttons 
    42         self.toolbar = NavigationToolbar(self.canvas, self) 
    4340 
    4441        # Simple window for data display 
     
    112109        if not quickplot: 
    113110            # Add the toolbar 
     111            self.toolbar = NavigationToolbar(self.canvas, self) 
    114112            layout.addWidget(self.toolbar) 
    115113            # Notify PlotHelper about the new plot 
     
    297295        Use the internal MPL method for saving to file 
    298296        """ 
     297        if not hasattr(self, "toolbar"): 
     298            self.toolbar = NavigationToolbar(self.canvas, self) 
    299299        self.toolbar.save_figure() 
    300300 
Note: See TracChangeset for help on using the changeset viewer.