diff --git a/schainpy/model/graphics/jroplot_parameters.py b/schainpy/model/graphics/jroplot_parameters.py index 591fe57..2aff0dc 100644 --- a/schainpy/model/graphics/jroplot_parameters.py +++ b/schainpy/model/graphics/jroplot_parameters.py @@ -360,7 +360,7 @@ class WindProfilerPlot(Figure): def __init__(self): self.timerange = 2*60*60 - self.isConfig = False + self.__isConfig = False self.__nsubplots = 1 self.WIDTH = 800 @@ -483,9 +483,7 @@ class WindProfilerPlot(Figure): ylabel = "Range (Km)" if not self.__isConfig: - - - + self.setup(id=id, nplots=nplots, wintitle=wintitle, @@ -554,18 +552,13 @@ class WindProfilerPlot(Figure): ticksize=9, cblabel='', cbsize="1%", colormap="jet") self.draw() - - if x[1] >= self.axesList[0].xmax: - self.counter_imagwr = wr_period - self.__isConfig = False - - + if self.figfile == None: str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S") self.figfile = self.getFilename(name = str_datetime) - + if figpath != '': - + self.counter_imagwr += 1 if (self.counter_imagwr>=wr_period): # store png plot to local folder @@ -574,7 +567,10 @@ class WindProfilerPlot(Figure): name = self.getNameToFtp(thisDatetime, self.FTP_WEI, self.EXP_CODE, self.SUB_EXP_CODE, self.PLOT_CODE, self.PLOT_POS) ftp_filename = os.path.join(figpath, name) self.saveFigure(figpath, ftp_filename) - + self.counter_imagwr = 0 - \ No newline at end of file + if x[1] >= self.axesList[0].xmax: + self.counter_imagwr = wr_period + self.__isConfig = False + self.figfile = None \ No newline at end of file diff --git a/schainpy/model/graphics/jroplot_spectra.py b/schainpy/model/graphics/jroplot_spectra.py index fd65d65..8e12c3f 100644 --- a/schainpy/model/graphics/jroplot_spectra.py +++ b/schainpy/model/graphics/jroplot_spectra.py @@ -406,7 +406,7 @@ class CrossSpectraPlot(Figure): class RTIPlot(Figure): - isConfig = None + __isConfig = None __nsubplots = None WIDTHPROF = None @@ -416,7 +416,7 @@ class RTIPlot(Figure): def __init__(self): self.timerange = 2*60*60 - self.isConfig = False + self.__isConfig = False self.__nsubplots = 1 self.WIDTH = 800 @@ -533,7 +533,7 @@ class RTIPlot(Figure): xlabel = "" ylabel = "Range (Km)" - if not self.isConfig: + if not self.__isConfig: nplots = len(channelIndexList) @@ -562,7 +562,7 @@ class RTIPlot(Figure): self.PLOT_POS = plot_pos self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") - self.isConfig = True + self.__isConfig = True self.figfile = figfile self.setWinTitle(title) @@ -589,12 +589,7 @@ class RTIPlot(Figure): ytick_visible=False, grid='x') - self.draw() - - if x[1] >= self.axesList[0].xmax: - self.counter_imagwr = wr_period - self.__isConfig = False - + self.draw() if self.figfile == None: str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S") @@ -612,7 +607,11 @@ class RTIPlot(Figure): self.saveFigure(figpath, ftp_filename) self.counter_imagwr = 0 - + + if x[1] >= self.axesList[0].xmax: + self.counter_imagwr = wr_period + self.__isConfig = False + self.figfile = None class CoherenceMap(Figure): isConfig = None