Changeset f1d9da7 in sasview for src/sas/qtgui/Plotting


Ignore:
Timestamp:
May 15, 2018 3:48:59 AM (7 years ago)
Author:
wojciech
Branches:
ESS_GUI, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
5a731c63
Parents:
bac81f4 (diff), f9214aa (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'ESS_GUI' of https://github.com/SasView/sasview into ESS_GUI

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.