Matplotlib warning [error?] message

2024-02-19 Thread Leif Svalgaard via Python-list
now I get:
 File e:\getmodpot.py:40
fig,ax = initPlot()

  File E:\mystuff.py:272 in initPlot
fig,ax = plt.subplots(figsize=(xs,ys))

  File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:1501 in subplots
fig = figure(**fig_kw)

  File ~\anaconda3\Lib\site-packages\matplotlib\_api\deprecation.py:454 in
wrapper
return func(*args, **kwargs)

  File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:840 in figure
manager = new_figure_manager(

  File ~\anaconda3\Lib\site-packages\matplotlib\pyplot.py:384 in
new_figure_manager
return _get_backend_mod().new_figure_manager(*args, **kwargs)

  File ~\anaconda3\Lib\site-packages\matplotlib\backend_bases.py:3573 in
new_figure_manager

  File ~\anaconda3\Lib\site-packages\matplotlib\_api\deprecation.py:454 in
wrapper
return func(*args, **kwargs)

  File ~\anaconda3\Lib\site-packages\matplotlib\figure.py:2505 in __init__
"The Figure parameters 'layout' and 'constrained_layout' "

  File ~\anaconda3\Lib\site-packages\matplotlib\figure.py:213 in __init__
self.set(**kwargs)

  File ~\anaconda3\Lib\site-packages\matplotlib\artist.py:147 in 
cls.set = lambda self, **kwargs: Artist.set(self, **kwargs)

  File ~\anaconda3\Lib\site-packages\matplotlib\artist.py:1227 in set
return self._internal_update(cbook.normalize_kwargs(kwargs, self))

  File ~\anaconda3\Lib\site-packages\matplotlib\cbook\__init__.py:1771 in
normalize_kwargs
for canonical, alias_list in alias_mapping.items()

AttributeError: 'Figure' object has no attribute 'items'

-- 
Leif Svalgaard
l...@leif.org
-- 
https://mail.python.org/mailman/listinfo/python-list


Matplotlib warning [error?] message

2024-02-18 Thread Leif Svalgaard via Python-list
The latest[?] version of Matplotlib cannot show a figure. I get the
annoying error message: "Matplotlib is currently using agg, which is a
non-GUI backend, so cannot show the figure"
I'm using Spyder python 3.11 on Windows 11.
What to do?

-- 
Leif Svalgaard
l...@leif.org
-- 
https://mail.python.org/mailman/listinfo/python-list