PEATDB/Tables.py
def plot_Selected(self):
        """Plot the selected data using pylab - if possible"""
        from PylabPlot import pylabPlotter
        if not hasattr(self, 'pyplot'):
            self.pyplot = pylabPlotter()
        plotdata = []
        for p in self.getSelectionValues():
            x = []
            for d in p:
                try:
                    x.append(float(d))
                except:
                    pass
            plotdata.append(x)

        pltlabels = self.getplotlabels()
        #print pltlabels, plotdata
        if len(pltlabels) > 2:
            self.pyplot.setDataSeries(pltlabels)
            self.pyplot.showlegend = 1
        else:
            self.pyplot.setxlabel(pltlabels[0])
            self.pyplot.setylabel(pltlabels[1])
        self.pyplot.plotCurrent(data=plotdata)
        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 plot_Selected(self):
        from PylabPlot import pylabPlotter
        if not hasattr(self, 'pyplot'):
            self.pyplot = pylabPlotter()
        plotdata = []
        for p in self.getSelectionValues():
            x = []
            for d in p:
                try:
                    x.append(float(d))
                except:
                    pass
            plotdata.append(x)
        pltlabels = self.getplotlabels()
        if len(pltlabels) > 2:
            self.pyplot.setDataSeries(pltlabels)
            self.pyplot.showlegend = 1
        else:
            self.pyplot.setxlabel(pltlabels[0])
            self.pyplot.setylabel(pltlabels[1])
        self.pyplot.plotCurrent(data=plotdata)
        return
def plot_Selected ( self ) : from PylabPlot import pylabPlotter if not hasattr ( self , 'pyplot' ) : self . pyplot = pylabPlotter ( ) plotdata = [ ] for p in self . getSelectionValues ( ) : x = [ ] for d in p : try : x . append ( float ( d ) ) except : pass plotdata . append ( x ) pltlabels = self . getplotlabels ( ) if len ( pltlabels ) > 2 : self . pyplot . setDataSeries ( pltlabels ) self . pyplot . showlegend = 1 else : self . pyplot . setxlabel ( pltlabels [ 0 ] ) self . pyplot . setylabel ( pltlabels [ 1 ] ) self . pyplot . plotCurrent ( data = plotdata ) 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""" #print pltlabels, plotdata
self