Skip to content
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

Vibrating data and transition_states #495

Open
SebastianG4 opened this issue Mar 1, 2024 · 0 comments
Open

Vibrating data and transition_states #495

SebastianG4 opened this issue Mar 1, 2024 · 0 comments

Comments

@SebastianG4
Copy link

Hi,

I've recently started playing around with gganimate for the first time and really like it! However, I've run into an issue that I am struggling to solve, at least in the way that I want. Specifically, I am trying to animate two geom_line plots using transition_states. For one line, the data for the entire line changes from each state to the next, and the resulting animation is very nice. However, for the second line, all data points except the newest remain constant for all following states, and for some reason, rather than appearing static in the animation, the points seem to vibrate or "shiver", seemingly at random times and x positions. I assume this has something to do with the tweening process, which I have almost no knowledge about. My current workaround is to set transition_length = 0, which removes the vibrations, but also removes the nice smooth transitions between states, making the whole animation feel much choppier. Is there some way to have my cake and eat it too? Here's an example gif with the "vibrations" that I mentioned.
animation_w_vibrations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant