##// END OF EJS Templates
-timerange bug fix at Meteor Phase Plot...
Julio Valdez -
r610:4d46abf6970f
parent child
Show More
@@ -1250,9 +1250,6 class PhasePlot(Figure):
1250 1250 server=None, folder=None, username=None, password=None,
1251 1251 ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0):
1252 1252
1253
1254 if timerange != None:
1255 self.timerange = timerange
1256 1253
1257 1254 tmin = None
1258 1255 tmax = None
@@ -1280,8 +1277,12 class PhasePlot(Figure):
1280 1277 wintitle=wintitle,
1281 1278 showprofile=showprofile,
1282 1279 show=show)
1283
1284 tmin, tmax = self.getTimeLim(x, xmin, xmax)
1280
1281 if timerange != None:
1282 self.timerange = timerange
1283
1284 self.xmin, self.xmax = self.getTimeLim(x, xmin, xmax, timerange)
1285
1285 1286 if ymin == None: ymin = numpy.nanmin(phase_beacon) - 10.0
1286 1287 if ymax == None: ymax = numpy.nanmax(phase_beacon) + 10.0
1287 1288
@@ -1324,7 +1325,7 class PhasePlot(Figure):
1324 1325
1325 1326
1326 1327 axes.pmultilineyaxis(x=self.xdata, y=self.ydata,
1327 xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax,
1328 xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax,
1328 1329 xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, marker='x', markersize=8, linestyle="solid",
1329 1330 XAxisAsTime=True, grid='both'
1330 1331 )
@@ -843,8 +843,6 class HDF5Writer(Operation):
843 843 def putData(self):
844 844
845 845 if not self.firsttime:
846 self.fp.flush()
847 self.fp.close()
848 846 self.readBlock()
849 847
850 848 if self.blockIndex == self.blocksPerFile:
@@ -854,6 +852,8 class HDF5Writer(Operation):
854 852 self.setBlock()
855 853 self.writeBlock()
856 854
855 self.fp.flush()
856 self.fp.close()
857 857
858 858 return
859 859
General Comments 0
You need to be logged in to leave comments. Login now