Changeset 42787fb in sasview for src/sas/qtgui/Plotting/Plotter.py


Ignore:
Timestamp:
May 7, 2018 9:34:50 AM (7 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, 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:
fa05c6c1
Parents:
3c6ecd9
Message:

Fixing issues with DataOperationUtility? calculator

File:
1 edited

Legend:

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

    rbb57068 r42787fb  
    166166        # Now add the legend with some customizations. 
    167167 
    168         self.legend = ax.legend(loc='upper right', shadow=True) 
    169         if self.legend: 
    170             self.legend.set_picker(True) 
     168        if self.showLegend: 
     169            self.legend = ax.legend(loc='upper right', shadow=True) 
     170            if self.legend: 
     171                self.legend.set_picker(True) 
    171172 
    172173        # Current labels for axes 
Note: See TracChangeset for help on using the changeset viewer.