Changeset 39551a68 in sasview for src/sas/qtgui/Plotter.py


Ignore:
Timestamp:
Aug 1, 2016 9:47:16 AM (8 years ago)
Author:
Piotr Rozyczko <piotr.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:
1af348e
Parents:
28a84e9
Message:

More context menu functionality + tests

File:
1 edited

Legend:

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

    r8cb6cd6 r39551a68  
    7878        self._ax = self.figure.add_subplot(self._current_plot) 
    7979 
    80     def plot(self): 
     80    def plot(self, marker=None, linestyle=None): 
    8181        """ 
    8282        Plot self._data 
     
    8585        ax = self._ax 
    8686 
     87        if marker == None: 
     88            marker = '*' 
     89 
     90        if linestyle == None: 
     91            linestyle = '-' 
     92 
    8793        # plot data with legend 
    88         ax.plot(self._data.x, self._data.y, '*-', label=self._title) 
     94        ax.plot(self._data.x, self._data.y, marker=marker, linestyle=linestyle, label=self._title) 
    8995 
    9096        # Now add the legend with some customizations. 
Note: See TracChangeset for help on using the changeset viewer.