##// END OF EJS Templates
Fix decimation plotting in spectra plots
Juan C. Valdez -
r857:67f01bcfa372
parent child
Show More
@@ -501,8 +501,9 class Axes:
501 501 xlen = len(x)
502 502 ylen = len(y)
503 503
504 decimationx = numpy.floor(xlen/self.__MAXNUMX) + 1
504 decimationx = numpy.floor(xlen/self.__MAXNUMX) - 1 if numpy.floor(xlen/self.__MAXNUMX)>1 else 1
505 505 decimationy = numpy.floor(ylen/self.__MAXNUMY) + 1
506
506 507
507 508 x_buffer = x[::decimationx]
508 509 y_buffer = y[::decimationy]
@@ -562,9 +563,9 class Axes:
562 563 maxNumX = self.__MAXNUMTIME
563 564
564 565 if maxNumY == None:
565 maxNumY = self.__MAXNUMY
566 maxNumY = self.__MAXNUMY
566 567
567 if self.__firsttime:
568 if self.__firsttime:
568 569 self.z_buffer = z
569 570 self.x_buffer = numpy.hstack((self.x_buffer, x))
570 571
@@ -575,7 +576,6 class Axes:
575 576 if zmin == None: zmin = numpy.nanmin(z)
576 577 if zmax == None: zmax = numpy.nanmax(z)
577 578
578
579 579 self.plot = self.__driver.createPcolor(self.ax, self.x_buffer, y, z,
580 580 xmin, xmax,
581 581 ymin, ymax,
General Comments 0
You need to be logged in to leave comments. Login now