Public Access
fix log scaling: replace removed basex= keyword with base= in set_xscale/set_yscale
This commit is contained in:
1 parent
6668ac5b2b
commit
1f6763f9de
1 file changed
+2
-2
@@ -4015,13 +4015,13 @@ class MonitorWidgets:
|
|||||||
|
|
||||||
# finally decide about x log plot
|
# finally decide about x log plot
|
||||||
if x_scale == "log10" and xmin > 0:
|
if x_scale == "log10" and xmin > 0:
|
||||||
self.matplot_axes.set_xscale( "log", basex=10.0 )
|
self.matplot_axes.set_xscale( "log", base=10.0 )
|
||||||
self.matplot_axes.fmt_xdata = lambda x: "%g" % x
|
self.matplot_axes.fmt_xdata = lambda x: "%g" % x
|
||||||
#elif x_scale=="log" and xmin>0:
|
#elif x_scale=="log" and xmin>0:
|
||||||
# e scaling implementation not really useful
|
# e scaling implementation not really useful
|
||||||
# self.matplot_axes.set_xscale("log", basex=numpy.e)
|
# self.matplot_axes.set_xscale("log", basex=numpy.e)
|
||||||
if y_scale == "log10" and ymin > 0:
|
if y_scale == "log10" and ymin > 0:
|
||||||
self.matplot_axes.set_yscale( "log", basex=10.0 )
|
self.matplot_axes.set_yscale( "log", base=10.0 )
|
||||||
self.matplot_axes.fmt_ydata = lambda x: "%g" % x
|
self.matplot_axes.fmt_ydata = lambda x: "%g" % x
|
||||||
|
|
||||||
self.__rescale = False
|
self.__rescale = False
|
||||||
|
|||||||
Reference in new issue
Block a user