Open longye-tian opened 2 months ago
thanks @longye-tian. I really like the animations -- but I also really like the static representation here. I think it maybe useful to have both. Would it be possible to have them side-by-side do you think?
thanks @longye-tian. I really like the animations -- but I also really like the static representation here. I think it maybe useful to have both. Would it be possible to have them side-by-side do you think?
Hi Matt @mmcky,
Yes, if we delete the following code in the animation code, we will have a static version following the animation
plt.close()
The only issue is that the static version does not look like the original plot. Here is the static version looks like
Another way is to keep the original code for the static plot and add the animation separately.
Best, Longye
@longye-tian I wonder if we can introduce tabs
(from sphinx-design) to show a static and dynamic version.
https://sphinx-design.readthedocs.io/en/latest/tabs.html
I will need to think about pdflatex
compatibility but it would be nice way to show both.
Dear John @jstac and Matt @mmcky ,
When I went through the issues last week, I found #79, which is related to animating the dynamics of the cobweb model.
I propose to use the following code to animate the naive expectation with persistent cycles.
We need these two extra imports
and replace
plot45()
by the following code:Here is the animation generated by the code:
https://github.com/user-attachments/assets/4696a793-2aa4-49c5-8faa-4460d29ae5b1
For your reference, I attached the current plot as follows:
What do you think about this change? Would you like to change anything?
Best ❤️ Longye