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