This tag is for questions related to the matplotlib animation API
Questions tagged [matplotlib-animation]
383 questions
0
votes
2 answers
How can I update a plot without creating multiple figures?
I am using Python 3.9 in Spyder and have a problem with plotting.
Whenever I plot something, in the "Plot" Pane, a new plot pops up.
For my application, I want to update the plot very quickly but every time I plot the figure, a new figure appears in…

F F
- 1
0
votes
1 answer
Creating Animated SST Plot with Python
I would like to create a plot that showcases sea-surface temperature changing over the years, very similar to the SST maps that NOAA creates. The image I've inserted is essentially what the plot should look like before it gets animated, the only…

rach
- 1
- 2
0
votes
0 answers
Cannot Visualize Smoke on Stage
I am creating an animated stage scene using Matplotlib where I need to visualize smoke on the stage. However, despite my efforts, the smoke is not visible on the stage.
I'm using the Matplotlib patches.Circle to create and update the smoke at each…

private_xoxo
- 3
- 1
0
votes
0 answers
Proper use of FuncAnimation to display simulation result
I'm currently working on a lattice boltzmann simulation, and it is my first python project.
While I managed to make a working simulation, I'm having trouble using Matplotlib FuncAnimation (I'm using spyder).
I have stored all the datas resulting…

DrPopart
- 1
0
votes
0 answers
How can I make my ipywidgets 3D-animation smoother?
I'm trying to do a 3D animation in jupyter python with matplotlib and ipywidgets. (I also have spyder but I'm unfamiliar with it yet and as I'm using a chromebook, it's faster to start up jupyter. The chromenbook part is also important because if I…

SciManScimon
- 13
- 3
0
votes
1 answer
Trying Matplotlib animation but MatplotlibDeprecationWarning is occur
I'm trying to create live data plot. This is my script:
import time
import serial
import comport as com
import matplotlib.pyplot as plt
import matplotlib.animation as animation
def animate(i, dataList, ser):
arduinoData_string =…

Valery Utukin
- 1
- 1
0
votes
0 answers
Ubuntu thinks matplotlib is not responding when running with ion()
I want a plot updates in real-time, updating once on each run of a loop that takes a bit of time to run. The code works, but I'm getting a lot of popups saying Visual Studio Code is not responding between updates (during the sleep in the code…

Lisa
- 1
- 1
0
votes
0 answers
Is it possible to have interactive plots in Emacs?
I was trying to use Emacs as my editor for my research (I followed all steps in Jon Fincher’s guide on Realpython : [https://realpython.com/emacs-the-best-python-editor/]).
I use jupyter notebooks a lot for data visualization, so I installed ein…

valentin
- 1
- 1
0
votes
0 answers
Matplotlib animation updating LineCollection to save the video
I'm quite new to Matplotlib and I encountered a problem I can't solve.
In the following code, what I'm trying to do is to create an animation of multiple beam segments moving and creating impacts when they collide (there is also a timer).
I have a…

paulo01
- 3
- 2
0
votes
0 answers
FuncAnimation run twice of frames in the tk backends in the Jupyter notebook
I have some plot-related questions regarding FuncAnimation used in Jupyter notebook.
The main issue is the FuncAnimation runs twice of frames number while it saves the right number of frames.
The minor issue is in the %matplotlib tk magic, the GUI…

Silentmovie
- 3
- 3
0
votes
2 answers
the matplotlib graph is breaking after my custom x axis labels exceed 50
i am developing a weather monitoring program and i am stuck at a problem. the problem is when the array that contains the labels for the x axis exceeds the lenght of 50 the graph starts to break. and i need to set the x values to a custom array…

Danoo
- 3
- 3
0
votes
0 answers
Creating multiple animations
I have a piece of code that creates four animations from data, but only one (the first one to be saved) is actually saved.
the relevant part of my code:
`anim1 = FuncAnimation(fig, update1, interval=50) #creates the animations
anim2 =…

Teddy Masters
- 1
- 1
0
votes
0 answers
Tracing the path of a pendulum in animation
I am making an animation of a double pendulum and I would like to trace the path of the second pendulum only, to show the chaotic motion. I have included the code I have so far for the animation. It runs and both pendulums move smoothly, but I feel…
0
votes
0 answers
Tkinter/Matplotlib inconsistent behaviour between debugging and 'release'
Preliminaries
Python: 3.11.1 x64
tkinter: 8.6
matplotlib: 3.6.2
VsCode 1.77.2 on Windows 10 21H2
Summary
I have a simple app that plots a graph on a tkinter canvas, records the image and then restores said image using copy_from_bbox and restore…

craigB
- 372
- 1
- 3
- 13
0
votes
0 answers
How to Join python graphics in BITalino?
is there any way i can join this graphics in Python? Because BITalino sensor(data) only get a 100 samples in the graphics, so if i put 2 seconds of aquisition he wil generate something between 10 or 15 graphics, there is a way i can join this…