From c455b3bdfa1ef9391d9e02f4e7d44da03e51d764 Mon Sep 17 00:00:00 2001 From: Sylvain Tricot Date: Tue, 25 Oct 2022 16:21:38 +0200 Subject: [PATCH] Fix bug with matplotlib > 3.4.3 In newer versions of matplotlib, the autoscale was not working. Changing "autoscale" to False simply fixes the bug... --- src/msspec/calculator.py | 6 +++--- src/pip.freeze | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/msspec/calculator.py b/src/msspec/calculator.py index ff0e313..f3a58e4 100644 --- a/src/msspec/calculator.py +++ b/src/msspec/calculator.py @@ -17,8 +17,8 @@ # along with this msspec. If not, see . # # Source file : src/msspec/calculator.py -# Last modified: Wed, 09 Feb 2022 19:08:22 +0100 -# Committed by : Sylvain Tricot +# Last modified: Tue, 25 Oct 2022 16:21:38 +0200 +# Committed by : Sylvain Tricot 1666707698 +0200 """ @@ -749,7 +749,7 @@ class _PED(_MSCALCULATOR): view = dset.add_view("E = {:.2f} eV".format(ke), title=title, xlabel=xlabel, ylabel=ylabel, - projection='stereo', colorbar=True, autoscale=True) + projection='stereo', colorbar=True, autoscale=False) view.select('theta', 'phi', 'cross_section') diff --git a/src/pip.freeze b/src/pip.freeze index 196bfa6..406ab63 100644 --- a/src/pip.freeze +++ b/src/pip.freeze @@ -2,7 +2,7 @@ ase h5py ipython lxml -matplotlib==3.4.3 +matplotlib numpy Pint pandas