Figured it'd be useful to have at least one example in the docs to show that it's possible and encourage the use of the OO paradigm. There used to be a subplot example, but that was back when it was overly complicated to do animated subplots. it was removed in #10125
but that was back when it was overly complicated to do animated subplots.
I'll agree that the example was overly complicated, but I don't think anything has changed in regards to animating. They are, and have always been, just another Axes. Is there an issue I missed?
That example was removed in #10125 and also yes I saw code and didn't read carefully that actual mechanisms didn't change 😖 sorry!
so currently the only examples in the gallery are the single axes case. I think it's one of those things that's obvious if you've got a good intuition for the library and not so much if you don't. I got a DM asking about how to animate subplots - sent them to the usage guide and discourse - and it seemed like a useful thing to include to show the intuition.
That example was removed in #10125 and also yes I saw code and didn't read carefully that actual mechanisms didn't change 😖 sorry!
No worries, I think having an example that shows how to properly manage artists across different Axes is definitely useful to have. Just wanted to make sure I wasn't misunderstanding something else.
Activity
dopplershift commented on Sep 16, 2022
I'll agree that the example was overly complicated, but I don't think anything has changed in regards to animating. They are, and have always been, just another Axes. Is there an issue I missed?
story645 commented on Sep 16, 2022
That example was removed in #10125 and also yes I saw code and didn't read carefully that actual mechanisms didn't change 😖 sorry!
so currently the only examples in the gallery are the single axes case. I think it's one of those things that's obvious if you've got a good intuition for the library and not so much if you don't. I got a DM asking about how to animate subplots - sent them to the usage guide and discourse - and it seemed like a useful thing to include to show the intuition.
dopplershift commented on Sep 16, 2022
No worries, I think having an example that shows how to properly manage artists across different Axes is definitely useful to have. Just wanted to make sure I wasn't misunderstanding something else.
timhoffm commented on Sep 16, 2022
I think a projection of a circular motion would be a nice example. Similar to https://www.youtube.com/watch?v=cx-qHZwsLqs
Left ax: circle with a rotating point and a line from that point vertically to the x axis(= the y component)
Right ax: y(r) = sin(r), and a vertical line moving along r. One should see that both vertical lines always have the same height.
StefRe commented on Sep 17, 2022
something like this?

timhoffm commented on Sep 17, 2022
Great! I wasn't sure how difficult the connection line between the two Axes was, and thus proposed the vertical lines, but this is even bette.
story645 commented on Sep 18, 2022
@timhoffm & @StefRe that is a far better suggestion than mine! PR would be much appreciated!