Changeset e30646ab in sasview


Ignore:
Timestamp:
May 9, 2018 9:06:32 AM (2 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
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:
d1fa2b8
Parents:
acd9c311
Message:

Allow for fully toolbar free charts. Part of SASVIEW-789

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.