diff --git a/flent/plotters.py b/flent/plotters.py index c0c36218..37e837fd 100644 --- a/flent/plotters.py +++ b/flent/plotters.py @@ -1238,7 +1238,10 @@ def _do_scaling(self, axis, data, btm, top, unit=None, allow_log=True): axis.set_ylim(0, top_scale) else: if self.log_base: - axis.set_yscale('log', basey=self.log_base) + try: + axis.set_yscale('log', base=self.log_base) + except TypeError: + axis.set_yscale('log', basey=self.log_base) axis.set_ylim(max(0, btm_scale), top_scale) else: axis.set_ylim(btm_scale, top_scale) @@ -1884,7 +1887,10 @@ def _plot(self, results, config=None, axis=None, postfix="", axis.set_xlim(left=min(min_value, axis.get_xlim()[0])) if self.log_base: - axis.set_xscale('log', basex=self.log_base) + try: + axis.set_xscale('log', base=self.log_base) + except TypeError: + axis.set_xscale('log', basex=self.log_base) for a, b in zip(config['axes'], self.bounds_x): a.set_xbound(b)