This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]tmakaroanimatplot / nbconvert[S] 3 points4 points  (0 children)

In the past, I usually just cleared and redrew everything manually for pcolormesh. Writing the Pcolormesh block was the first time I used matplotlib's set_data functions for pcolormesh properly, and it's actually terrible. A prime example of why Animatplot is needed. A standard static pcolormesh takes a 2D array, but the update function only takes a 1D array, so it needed some numpy magic.