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/>.
#
# Source file : src/msspec/calculator.py
# Last modified: Wed, 09 Feb 2022 19:08:22 +0100
# Committed by : Sylvain Tricot <sylvain.tricot@univ-rennes1.fr>
# Last modified: Tue, 25 Oct 2022 16:21:38 +0200
# 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,
xlabel=xlabel, ylabel=ylabel,
projection='stereo', colorbar=True, autoscale=True)
projection='stereo', colorbar=True, autoscale=False)
view.select('theta', 'phi', 'cross_section')

View File

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