-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
blocks.Pcolormesh seems to have different behavior than plt.pcolormesh #56
Comments
What versions of animatplot and matplotlib are you using? For me with animatplot-0.4.2 and matplotlib-3.3.3, from the following the pcolormesh plot is identical (apart from tick labels) to the first frame of the animation.
We did change |
Have you changed the default value of
so I'm confused. animatplot is behaving as I'd expect, it's your matplotlib plot that seems odd. Maybe you could try creating a clean virtual environment (or conda environment) and make the |
I did not change any default value. |
Actually I was using |
animatplot at the moment doesn't support calling like The current behaviour is consistent with matplotlib's
|
I am not sure if it is a feature or a bug.
When I was playing with the example code:
I used a very coarse grid 55 instead of the original 5050, so that it is more clear.
The data array
Z
is of size 55 at a certain time step. But the generated animation shows a grid of shape 44.It seems blocks.Pcolormesh use the value in
Z
as the "node" value in animation, which is different in plt.pcolormesh whereZ
value is treated as the "mesh cell" value.The text was updated successfully, but these errors were encountered: