(self, graphtype='XY')
return
Plot the selected data using pylab - if possible
Plot the selected data using pylab - if possible
Plot the selected data using pylab - if possible
def plotSelected(self, graphtype='XY'):
        """Plot the selected data using pylab - if possible"""

        from .Plot import pylabPlotter
        if not hasattr(self, 'pyplot'):
            self.pyplot = pylabPlotter()
        plotdata = []
        for p in self.getSelectionValues():
            x = []
            fail = False
            for d in p:
                try:
                    x.append(float(d))
                except:
                    fail = True
                    continue
            if fail == False:
                plotdata.append(x)

        pltlabels = self.getplotlabels()
        if len(pltlabels) > 2:
            self.pyplot.setDataSeries(pltlabels)
            self.pyplot.showlegend = 1
        self.pyplot.plotCurrent(data=plotdata, graphtype=graphtype)
        return
def plotSelected ( self , graphtype = 'XY' ) : from . Plot import pylabPlotter if not hasattr ( self , 'pyplot' ) : self . pyplot = pylabPlotter ( ) plotdata = [ ] for p in self . getSelectionValues ( ) : x = [ ] fail = False for d in p : try : x . append ( float ( d ) ) except : fail = True continue if fail == False : plotdata . append ( x ) pltlabels = self . getplotlabels ( ) if len ( pltlabels ) > 2 : self . pyplot . setDataSeries ( pltlabels ) self . pyplot . showlegend = 1 self . pyplot . plotCurrent ( data = plotdata , graphtype = graphtype ) return