##// END OF EJS Templates
Bug fixed in RTI and Wind Profiler Plots, when data time exceeded the xmax, the new plot generated was overwriting the first one.
Julio Valdez -
r509:7fe23f0913c9
parent child
Show More
@@ -360,7 +360,7 class WindProfilerPlot(Figure):
360 def __init__(self):
360 def __init__(self):
361
361
362 self.timerange = 2*60*60
362 self.timerange = 2*60*60
363 self.isConfig = False
363 self.__isConfig = False
364 self.__nsubplots = 1
364 self.__nsubplots = 1
365
365
366 self.WIDTH = 800
366 self.WIDTH = 800
@@ -484,8 +484,6 class WindProfilerPlot(Figure):
484
484
485 if not self.__isConfig:
485 if not self.__isConfig:
486
486
487
488
489 self.setup(id=id,
487 self.setup(id=id,
490 nplots=nplots,
488 nplots=nplots,
491 wintitle=wintitle,
489 wintitle=wintitle,
@@ -555,11 +553,6 class WindProfilerPlot(Figure):
555
553
556 self.draw()
554 self.draw()
557
555
558 if x[1] >= self.axesList[0].xmax:
559 self.counter_imagwr = wr_period
560 self.__isConfig = False
561
562
563 if self.figfile == None:
556 if self.figfile == None:
564 str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S")
557 str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S")
565 self.figfile = self.getFilename(name = str_datetime)
558 self.figfile = self.getFilename(name = str_datetime)
@@ -577,4 +570,7 class WindProfilerPlot(Figure):
577
570
578 self.counter_imagwr = 0
571 self.counter_imagwr = 0
579
572
580 No newline at end of file
573 if x[1] >= self.axesList[0].xmax:
574 self.counter_imagwr = wr_period
575 self.__isConfig = False
576 self.figfile = None No newline at end of file
@@ -406,7 +406,7 class CrossSpectraPlot(Figure):
406
406
407 class RTIPlot(Figure):
407 class RTIPlot(Figure):
408
408
409 isConfig = None
409 __isConfig = None
410 __nsubplots = None
410 __nsubplots = None
411
411
412 WIDTHPROF = None
412 WIDTHPROF = None
@@ -416,7 +416,7 class RTIPlot(Figure):
416 def __init__(self):
416 def __init__(self):
417
417
418 self.timerange = 2*60*60
418 self.timerange = 2*60*60
419 self.isConfig = False
419 self.__isConfig = False
420 self.__nsubplots = 1
420 self.__nsubplots = 1
421
421
422 self.WIDTH = 800
422 self.WIDTH = 800
@@ -533,7 +533,7 class RTIPlot(Figure):
533 xlabel = ""
533 xlabel = ""
534 ylabel = "Range (Km)"
534 ylabel = "Range (Km)"
535
535
536 if not self.isConfig:
536 if not self.__isConfig:
537
537
538 nplots = len(channelIndexList)
538 nplots = len(channelIndexList)
539
539
@@ -562,7 +562,7 class RTIPlot(Figure):
562 self.PLOT_POS = plot_pos
562 self.PLOT_POS = plot_pos
563
563
564 self.name = thisDatetime.strftime("%Y%m%d_%H%M%S")
564 self.name = thisDatetime.strftime("%Y%m%d_%H%M%S")
565 self.isConfig = True
565 self.__isConfig = True
566 self.figfile = figfile
566 self.figfile = figfile
567
567
568 self.setWinTitle(title)
568 self.setWinTitle(title)
@@ -591,11 +591,6 class RTIPlot(Figure):
591
591
592 self.draw()
592 self.draw()
593
593
594 if x[1] >= self.axesList[0].xmax:
595 self.counter_imagwr = wr_period
596 self.__isConfig = False
597
598
599 if self.figfile == None:
594 if self.figfile == None:
600 str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S")
595 str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S")
601 self.figfile = self.getFilename(name = str_datetime)
596 self.figfile = self.getFilename(name = str_datetime)
@@ -613,6 +608,10 class RTIPlot(Figure):
613
608
614 self.counter_imagwr = 0
609 self.counter_imagwr = 0
615
610
611 if x[1] >= self.axesList[0].xmax:
612 self.counter_imagwr = wr_period
613 self.__isConfig = False
614 self.figfile = None
616
615
617 class CoherenceMap(Figure):
616 class CoherenceMap(Figure):
618 isConfig = None
617 isConfig = None
General Comments 0
You need to be logged in to leave comments. Login now