diff --git a/schainpy/Graphics/SpectraPlot.py b/schainpy/Graphics/SpectraPlot.py index e8ad084..983dca1 100644 --- a/schainpy/Graphics/SpectraPlot.py +++ b/schainpy/Graphics/SpectraPlot.py @@ -91,12 +91,13 @@ class Spectrum(): self.nGraphs = nChan self.__isPlotConfig = True - def iniPlot(self): + def iniPlot(self, winTitle=""): nx = int(numpy.sqrt(self.nGraphs)+1) #ny = int(self.nGraphs/nx) plplot.plsstrm(self.indexPlot) + plplot.plparseopts([winTitle], plplot.PL_PARSE_FULL) plplot.plsetopt("geometry", "%dx%d" %(300*nx, 240*nx)) plplot.plsdev("xwin") plplot.plscolbg(255,255,255) @@ -111,7 +112,7 @@ class Spectrum(): self.__isPlotIni = True - 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): + 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"): if not(self.__isPlotConfig): self.setup(titleList, diff --git a/schainpy/Graphics/VoltagePlot.py b/schainpy/Graphics/VoltagePlot.py index 648cda4..98c7f13 100644 --- a/schainpy/Graphics/VoltagePlot.py +++ b/schainpy/Graphics/VoltagePlot.py @@ -81,9 +81,10 @@ class Osciloscope(): self.nGraphs = nChan self.__isPlotConfig = True - def iniPlot(self): + def iniPlot(self, winTitle=""): plplot.plsstrm(self.indexPlot) + plplot.plparseopts([winTitle], plplot.PL_PARSE_FULL) plplot.plsetopt("geometry", "%dx%d" %(700, 115*self.nGraphs)) plplot.plsdev("xwin") plplot.plscolbg(255,255,255) @@ -94,7 +95,7 @@ class Osciloscope(): self.__isPlotIni = True - def plotData(self, xmin=None, xmax=None, ymin=None, ymax=None, idProfile=None, titleList=None, xlabelList=None, ylabelList=None, XAxisAsTime=False, type='iq'): + 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"): if idProfile != None and idProfile != self.m_Voltage.idProfile: return