Skip to content

Commit 8932e35

Browse files
authored
Adapt to matplotlib 3.5 (#86)
* Require Matplotlib >=3.5 * Fix changed arguments basex, basey
1 parent 9047f2b commit 8932e35

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

petab/visualize/plotter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ def generate_subplot(self,
244244
elif subplot.yScale == LOG10:
245245
ax.set_yscale("log")
246246
elif subplot.yScale == LOG:
247-
ax.set_yscale("log", basey=np.e)
247+
ax.set_yscale("log", base=np.e)
248248

249249
if subplot.plotTypeSimulation == BAR_PLOT:
250250
for data_plot in subplot.data_plots:
@@ -273,7 +273,7 @@ def generate_subplot(self,
273273
elif subplot.xScale == LOG10:
274274
ax.set_xscale("log")
275275
elif subplot.xScale == LOG:
276-
ax.set_xscale("log", basex=np.e)
276+
ax.set_xscale("log", base=np.e)
277277
# equidistant
278278
elif subplot.xScale == 'order':
279279
ax.set_xscale("linear")

petab/visualize/plotting_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def plot_lowlevel(plot_spec: pd.Series,
4747
elif plot_spec[Y_SCALE] == LOG10:
4848
ax.set_yscale("log")
4949
elif plot_spec[Y_SCALE] == LOG:
50-
ax.set_yscale("log", basey=np.e)
50+
ax.set_yscale("log", base=np.e)
5151

5252
# add yOffset
5353
ms.loc[:, 'mean'] = ms['mean'] + plot_spec[Y_OFFSET]
@@ -71,7 +71,7 @@ def plot_lowlevel(plot_spec: pd.Series,
7171
elif plot_spec[X_SCALE] == LOG10:
7272
ax.set_xscale("log")
7373
elif plot_spec[X_SCALE] == LOG:
74-
ax.set_xscale("log", basex=np.e)
74+
ax.set_xscale("log", base=np.e)
7575
# equidistant
7676
elif plot_spec[X_SCALE] == 'order':
7777
ax.set_xscale("linear")

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def absolute_links(txt):
5757
packages=find_packages(exclude=['doc*', 'test*']),
5858
install_requires=['numpy>=1.15.1',
5959
'pandas>=1.2.0',
60-
'matplotlib>=2.2.3',
60+
'matplotlib>=3.5.0',
6161
'python-libsbml>=5.17.0',
6262
'sympy',
6363
'colorama',

0 commit comments

Comments
 (0)