@@ -91,12 +91,13 class Spectrum(): | |||||
91 | self.nGraphs = nChan |
|
91 | self.nGraphs = nChan | |
92 | self.__isPlotConfig = True |
|
92 | self.__isPlotConfig = True | |
93 |
|
93 | |||
94 | def iniPlot(self): |
|
94 | def iniPlot(self, winTitle=""): | |
95 |
|
95 | |||
96 | nx = int(numpy.sqrt(self.nGraphs)+1) |
|
96 | nx = int(numpy.sqrt(self.nGraphs)+1) | |
97 | #ny = int(self.nGraphs/nx) |
|
97 | #ny = int(self.nGraphs/nx) | |
98 |
|
98 | |||
99 | plplot.plsstrm(self.indexPlot) |
|
99 | plplot.plsstrm(self.indexPlot) | |
|
100 | plplot.plparseopts([winTitle], plplot.PL_PARSE_FULL) | |||
100 | plplot.plsetopt("geometry", "%dx%d" %(300*nx, 240*nx)) |
|
101 | plplot.plsetopt("geometry", "%dx%d" %(300*nx, 240*nx)) | |
101 | plplot.plsdev("xwin") |
|
102 | plplot.plsdev("xwin") | |
102 | plplot.plscolbg(255,255,255) |
|
103 | plplot.plscolbg(255,255,255) | |
@@ -111,7 +112,7 class Spectrum(): | |||||
111 | self.__isPlotIni = True |
|
112 | self.__isPlotIni = True | |
112 |
|
113 | |||
113 |
|
114 | |||
114 | def plotData(self, xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, titleList=None, xlabelList=None, ylabelList=None, showColorbar=False, showPowerProfile=True, XAxisAsTime=False): |
|
115 | def plotData(self, xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, titleList=None, xlabelList=None, ylabelList=None, showColorbar=False, showPowerProfile=True, XAxisAsTime=False, winTitle="Spectra"): | |
115 |
|
116 | |||
116 | if not(self.__isPlotConfig): |
|
117 | if not(self.__isPlotConfig): | |
117 | self.setup(titleList, |
|
118 | self.setup(titleList, |
@@ -81,9 +81,10 class Osciloscope(): | |||||
81 | self.nGraphs = nChan |
|
81 | self.nGraphs = nChan | |
82 | self.__isPlotConfig = True |
|
82 | self.__isPlotConfig = True | |
83 |
|
83 | |||
84 | def iniPlot(self): |
|
84 | def iniPlot(self, winTitle=""): | |
85 |
|
85 | |||
86 | plplot.plsstrm(self.indexPlot) |
|
86 | plplot.plsstrm(self.indexPlot) | |
|
87 | plplot.plparseopts([winTitle], plplot.PL_PARSE_FULL) | |||
87 | plplot.plsetopt("geometry", "%dx%d" %(700, 115*self.nGraphs)) |
|
88 | plplot.plsetopt("geometry", "%dx%d" %(700, 115*self.nGraphs)) | |
88 | plplot.plsdev("xwin") |
|
89 | plplot.plsdev("xwin") | |
89 | plplot.plscolbg(255,255,255) |
|
90 | plplot.plscolbg(255,255,255) | |
@@ -94,7 +95,7 class Osciloscope(): | |||||
94 |
|
95 | |||
95 | self.__isPlotIni = True |
|
96 | self.__isPlotIni = True | |
96 |
|
97 | |||
97 | def plotData(self, xmin=None, xmax=None, ymin=None, ymax=None, idProfile=None, titleList=None, xlabelList=None, ylabelList=None, XAxisAsTime=False, type='iq'): |
|
98 | def plotData(self, xmin=None, xmax=None, ymin=None, ymax=None, idProfile=None, titleList=None, xlabelList=None, ylabelList=None, XAxisAsTime=False, type='iq', winTitle="Voltage"): | |
98 |
|
99 | |||
99 | if idProfile != None and idProfile != self.m_Voltage.idProfile: |
|
100 | if idProfile != None and idProfile != self.m_Voltage.idProfile: | |
100 | return |
|
101 | return |
General Comments 0
You need to be logged in to leave comments.
Login now