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

Original frame persists in animation #22

Open
dstansby opened this issue Apr 15, 2023 · 0 comments
Open

Original frame persists in animation #22

dstansby opened this issue Apr 15, 2023 · 0 comments

Comments

@dstansby
Copy link
Member

dstansby commented Apr 15, 2023

Describe the bug

Reporting sunpy/sunpy#5967 upstream. See https://docs.sunpy.org/en/stable/generated/gallery/plotting/lineAnimator_examples.html for the animation that looks wrong. I can reproduce this locally too.

To Reproduce

import matplotlib.pyplot as plt
import numpy as np
from mpl_animators import LineAnimator

data_shape0 = (10, 20)
data0 = np.random.rand(*data_shape0)

plot_axis0 = 1
slider_axis0 = 0

xdata = np.tile(np.linspace(0, 100, (data_shape0[plot_axis0] + 1)), (data_shape0[slider_axis0], 1))

ani = LineAnimator(data0, plot_axis_index=plot_axis0, axis_ranges=[None, xdata]).get_animation()

plt.show()

Screenshots

No response

System Details

No response

Installation method

No response

@Cadair Cadair added the bug label May 9, 2023
@github-actions github-actions bot removed the Bug label Nov 12, 2024
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

2 participants