fix log scaling: replace removed basex= keyword with base= in set_xscale/set_yscale

This commit is contained in:
markusro committed 2026-10-16 13:53:56 +02:00
1 parent 6668ac5b2b
commit 1f6763f9de
1 file changed
+2 -2
+2 -2
View File
@@ -4015,13 +4015,13 @@ class MonitorWidgets:
# finally decide about x log plot
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
#elif x_scale=="log" and xmin>0:
# e scaling implementation not really useful
# self.matplot_axes.set_xscale("log", basex=numpy.e)
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.__rescale = False