##// END OF EJS Templates
Fix decimation plotting in spectra plots
Juan C. Valdez -
r857:67f01bcfa372
parent child
Show More
@@ -501,9 +501,10 class Axes:
501 xlen = len(x)
501 xlen = len(x)
502 ylen = len(y)
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 decimationy = numpy.floor(ylen/self.__MAXNUMY) + 1
505 decimationy = numpy.floor(ylen/self.__MAXNUMY) + 1
506
506
507
507 x_buffer = x[::decimationx]
508 x_buffer = x[::decimationx]
508 y_buffer = y[::decimationy]
509 y_buffer = y[::decimationy]
509 z_buffer = z[::decimationx, ::decimationy]
510 z_buffer = z[::decimationx, ::decimationy]
@@ -575,7 +576,6 class Axes:
575 if zmin == None: zmin = numpy.nanmin(z)
576 if zmin == None: zmin = numpy.nanmin(z)
576 if zmax == None: zmax = numpy.nanmax(z)
577 if zmax == None: zmax = numpy.nanmax(z)
577
578
578
579 self.plot = self.__driver.createPcolor(self.ax, self.x_buffer, y, z,
579 self.plot = self.__driver.createPcolor(self.ax, self.x_buffer, y, z,
580 xmin, xmax,
580 xmin, xmax,
581 ymin, ymax,
581 ymin, ymax,
General Comments 0
You need to be logged in to leave comments. Login now