usnistgov / fipy

FiPy is a Finite Volume PDE solver written in Python
http://pages.nist.gov/fipy/en/latest
Other
505 stars 148 forks source link

Matplotlib 3.8 fails to plot irregular meshes #1009

Open guyer opened 7 months ago

guyer commented 7 months ago

As documented in Matplotlib "API Changes for 3.8.0",

FIPY_VIEWER=matplotlib python examples/diffusion/circle.py

raises

ImportError: Failed to import a viewer: ['matplotlib: Unable to determine Axes to steal space for Colorbar. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.']

Matplotlib 3.7 is fine. Regular meshes are fine.

Discussed in https://github.com/usnistgov/fipy/discussions/1006

Originally posted by **agoncalvescoel** February 9, 2024 Hey guys, I'm learning how to use this amazing tool, and while I was going through the manual, I had some errors running some scripts from the _examples_ folder: coupled.py, and circle.py. It gives me extensive lists of errors and the program crashes. Here's a print of the first ones: ![image](https://github.com/usnistgov/fipy/assets/100953718/d3e91846-e73c-47a8-8edf-a92fab21c380) When writing coupled one myself I did notice that I only had errors when trying the vector form. Anyone can help me with what I am doing wrong here?
guyer commented 7 months ago

Hmm... regular meshes are not OK, either. They just freeze after updating macOS from 13.6(?) to 14.3.1.

guyer commented 7 months ago

The freeze is reported in matplotlib/matplotlib#27720 and reportedly fixed in matplotlib/matplotlib#27755.

Issue still present in mpl 3.8.3