##// END OF EJS Templates
Bug fixed in jroplot_heispectra: Error when RTI creates a new graphic (lctime > Tmax)
Miguel Valdez -
r792:209333c1295b
parent child
Show More
@@ -243,8 +243,6 class RTIfromSpectraHeis(Figure):
243 if timerange != None:
243 if timerange != None:
244 self.timerange = timerange
244 self.timerange = timerange
245
245
246 tmin = None
247 tmax = None
248 x = dataOut.getTimeRange()
246 x = dataOut.getTimeRange()
249 y = dataOut.getHeiRange()
247 y = dataOut.getHeiRange()
250
248
@@ -273,7 +271,8 class RTIfromSpectraHeis(Figure):
273 showprofile=showprofile,
271 showprofile=showprofile,
274 show=show)
272 show=show)
275
273
276 tmin, tmax = self.getTimeLim(x, xmin, xmax)
274 self.tmin, self.tmax = self.getTimeLim(x, xmin, xmax)
275
277 if ymin == None: ymin = numpy.nanmin(datadB)
276 if ymin == None: ymin = numpy.nanmin(datadB)
278 if ymax == None: ymax = numpy.nanmax(datadB)
277 if ymax == None: ymax = numpy.nanmax(datadB)
279
278
@@ -306,19 +305,17 class RTIfromSpectraHeis(Figure):
306
305
307
306
308 axes.pmultilineyaxis(x=self.xdata, y=self.ydata,
307 axes.pmultilineyaxis(x=self.xdata, y=self.ydata,
309 xmin=tmin, xmax=tmax, ymin=ymin, ymax=ymax,
308 xmin=self.tmin, xmax=self.tmax, ymin=ymin, ymax=ymax,
310 xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, marker='.', markersize=8, linestyle="solid", grid='both',
309 xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, marker='.', markersize=8, linestyle="solid", grid='both',
311 XAxisAsTime=True
310 XAxisAsTime=True
312 )
311 )
313
312
314 self.draw()
313 self.draw()
315
314
316 if x[1] >= self.axesList[0].xmax:
315 if dataOut.ltctime >= self.tmax:
317 self.counter_imagwr = wr_period
316 self.counter_imagwr = wr_period
318 del self.xdata
319 del self.ydata
320 self.__isConfig = False
317 self.__isConfig = False
321 self.figfile = None
318 update_figfile = True
322
319
323 self.save(figpath=figpath,
320 self.save(figpath=figpath,
324 figfile=figfile,
321 figfile=figfile,
@@ -326,4 +323,4 class RTIfromSpectraHeis(Figure):
326 ftp=ftp,
323 ftp=ftp,
327 wr_period=wr_period,
324 wr_period=wr_period,
328 thisDatetime=thisDatetime,
325 thisDatetime=thisDatetime,
329 update_figfile=False)
326 update_figfile=update_figfile)
General Comments 0
You need to be logged in to leave comments. Login now