Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Matplotlib 3.8 fails to plot irregular meshes #1009

@guyer

Description

@guyer

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 #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

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions