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


Ignore:
Timestamp:
Oct 19, 2017 8:25:24 AM (7 years ago)
Author:
celinedurniak <celine.durniak@…>
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:
0c468bf
Parents:
d5c5d3d
Message:

Implemented comments from review for Data Operation Panel (ESS-GUI-SasView?-245)

File:
1 edited

Legend:

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

    rd5c5d3d rf0bb711  
    5858        self.title(title=value.name) 
    5959 
    60     def plot(self, data=None, color=None, marker=None, hide_error=False, show_legend=True): 
     60    def plot(self, data=None, color=None, marker=None, hide_error=False): 
    6161        """ 
    6262        Add a new plot of self._data to the chart. 
     
    145145 
    146146        # Now add the legend with some customizations. 
    147         if show_legend: 
    148             self.legend = ax.legend(loc='upper right', shadow=True) 
    149             if self.legend: 
    150                 self.legend.set_picker(True) 
     147 
     148        self.legend = ax.legend(loc='upper right', shadow=True) 
     149        if self.legend: 
     150            self.legend.set_picker(True) 
    151151 
    152152        # Current labels for axes 
Note: See TracChangeset for help on using the changeset viewer.