@@ -32,7 +32,7 else: | |||
|
32 | 32 | import matplotlib.pyplot as plt |
|
33 | 33 | from matplotlib.patches import Polygon |
|
34 | 34 | from mpl_toolkits.axes_grid1 import make_axes_locatable |
|
35 | from matplotlib.ticker import FuncFormatter, LinearLocator, MultipleLocator | |
|
35 | from matplotlib.ticker import FuncFormatter, LinearLocator, MultipleLocator,AutoMinorLocator | |
|
36 | 36 | |
|
37 | 37 | from schainpy.model.data.jrodata import PlotterData |
|
38 | 38 | from schainpy.model.proc.jroproc_base import ProcessingUnit, Operation, MPDecorator |
@@ -395,6 +395,7 class Plot(Operation): | |||
|
395 | 395 | ymin = self.ymin if self.ymin is not None else numpy.nanmin(self.y[numpy.isfinite(self.y)]) |
|
396 | 396 | ymax = self.ymax if self.ymax is not None else numpy.nanmax(self.y[numpy.isfinite(self.y)]) |
|
397 | 397 | ax.set_facecolor(self.bgcolor) |
|
398 | ax.xaxis.set_minor_locator(AutoMinorLocator(5)) | |
|
398 | 399 | if self.xscale: |
|
399 | 400 | ax.xaxis.set_major_formatter(FuncFormatter( |
|
400 | 401 | lambda x, pos: '{0:g}'.format(x*self.xscale))) |
General Comments 0
You need to be logged in to leave comments.
Login now