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...
This commit is contained in:
Sylvain Tricot 2022-10-25 16:21:38 +02:00
parent bbc8a92382
commit c455b3bdfa
2 changed files with 4 additions and 4 deletions

View File

@ -17,8 +17,8 @@
# along with this msspec. If not, see <http://www.gnu.org/licenses/>. # along with this msspec. If not, see <http://www.gnu.org/licenses/>.
# #
# Source file : src/msspec/calculator.py # Source file : src/msspec/calculator.py
# Last modified: Wed, 09 Feb 2022 19:08:22 +0100 # Last modified: Tue, 25 Oct 2022 16:21:38 +0200
# Committed by : Sylvain Tricot <sylvain.tricot@univ-rennes1.fr> # Committed by : Sylvain Tricot <sylvain.tricot@univ-rennes1.fr> 1666707698 +0200
""" """
@ -749,7 +749,7 @@ class _PED(_MSCALCULATOR):
view = dset.add_view("E = {:.2f} eV".format(ke), title=title, view = dset.add_view("E = {:.2f} eV".format(ke), title=title,
xlabel=xlabel, ylabel=ylabel, xlabel=xlabel, ylabel=ylabel,
projection='stereo', colorbar=True, autoscale=True) projection='stereo', colorbar=True, autoscale=False)
view.select('theta', 'phi', 'cross_section') view.select('theta', 'phi', 'cross_section')

View File

@ -2,7 +2,7 @@ ase
h5py h5py
ipython ipython
lxml lxml
matplotlib==3.4.3 matplotlib
numpy numpy
Pint Pint
pandas pandas