This tag is for questions related to the matplotlib animation API
Questions tagged [matplotlib-animation]
383 questions
0
votes
0 answers
Smoothly mapping one grid into another using Python
I have been working on a project of visualising how a grid transforms to another one by applying some function. Here is an example:
The work is heavily inspired in this question . What I wanted to do next is, using matplotlib, create some animation…

Uri Toti
- 101
- 1
0
votes
0 answers
Why does FuncAnimation display multiple static plots rather than one animated plot on Pycharm?
I'm writing code that processes data from a MongoDB collection in windows, and with each of these windows, it generates a graph as seen in the graph() function below. It then returns the graph via the "return ax" line, and adds it to the "plots"…

Jane Sun
- 1
0
votes
1 answer
Matplotlib animation.artistanimation showing all plots at once for inital figure
I want to create live plots of my results and found this SO question which did most of the job: Matplotlib animation update title using ArtistAnimation
BUT, when I start the script, the first figure shown is every figure at the same time (see…

JD.
- 169
- 2
- 14
0
votes
0 answers
Image Animation with Python
I have an image from the PIL library in python. I wanted to add some basic animation by plotting the image one pixel at a time. To learn the basics of plotting, I am going through the image row by row and plotting image.getpixel((0, 0)),…
0
votes
0 answers
How to insert an animated matplotlib graph into a html webpage running on a beagleboard?
I have a beagleboard which I need to run a webpage displaying a live matplotlib animated graph. currently I have the graph part working when I run the python script and do plt.show(). this opens a new window on my PC with the graph. However, I…

Harry_
- 33
- 1
- 6
0
votes
0 answers
QCoDeS measurement with live plotting from Matplotlib.Animation
I am trying to run a measurement, measuring a temperature over time, using QCoDeS measurement drivers. I would like to view a live plotting of the data. Preferably using Matplotlib.Animation package. How best to do this?
I have tried the below but…
0
votes
0 answers
Combine matplotlib slider and funcanimation
I have an animation working well with FuncAnimation. My goal is to change a parameter with a slider and update the animation instantly. I don't know how to combine both. You'll find my code down here, I call additionary function from an another file…

Malo
- 13
- 3
0
votes
0 answers
Unsure of which of my parameters is a module when trying to use PLT to do animate a random walk
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def rectangle_random_walk3(n, w, l):
bounces = 0
x = 0
y = 0
path = [(x, y)]
for i in range(n):
if np.random.rand() < 0.5:
…

Jacob_L_660
- 1
- 1
0
votes
1 answer
FuncAnimation: Cannot animate a point and a line at the same time
I am trying to make an animated plot to show the behavior of a simple harmonic oscillator. I would like for this animation to be a combination of the following two plots. That is, I would like the red square to go up and down, and on the same plot I…
0
votes
0 answers
Animate fill_between under a curve FuncAnimation - Animation starts already with the fill_between, how do I remove this
I found this question/answer with the following code
How do I get a fill_between shape in Funcanimation?
import numpy as np
from matplotlib import pyplot as plt
from matplotlib import animation
X = np.linspace(0,3.428, num=250)
Y =…

felipebch
- 1
- 2
0
votes
1 answer
How would you go about plotting this data in 3d over time?
So,
The data looks like this:
(the spaces represent different columns, and the data represents 10 particles going around a central particle "Sun" and at different time steps in this case every 1,000 days for 3.6 million days )
and I've been running…

Jacob Mireles
- 13
- 2
0
votes
1 answer
Trying to animate persistent homology in python
I am trying to write a program that will run a persistent homology animation on some random data. Here is the code that I have so far:
import numpy as np
from ripser import ripser
import matplotlib.pyplot as plt
import matplotlib.animation as…

The Mad Scientist
- 123
- 5
0
votes
1 answer
Why do i get a FileNotFoundError when trying to save a file?
I am trying to save a matplotlib animation but i always get a FileNotFoundError.
import matplotlib.animation as animation
anim = animation.FuncAnimation(fig, plot_update, frames = vel, init_func = plot_init, blit = True)
writervideo =…

Øystein Bringsli
- 43
- 6
0
votes
1 answer
How to plot multiple animations in Matplolib for 2 different sources
In a measurement chain, each instrument embedded in various measurement loops will record a CSV and I want to monitor the live plots in separate figures i.e figure 1 for instrument1 , figure 2 for instrument2...etc. I try to implement animations but…

datac
- 39
- 7
0
votes
0 answers
delay in appearing the labels and images when switching to tabs or minimize the window in tkinter python of real time serial data plot
Excuse me for my language.
I have written a python code that creates a GUI which gives a set of serial data and plot them in real time. I show the plots and data in different tabs, which are defined using notebook.
The real time plot is also…

zahra jafari
- 1
- 1