This tag is for questions related to the matplotlib animation API
Questions tagged [matplotlib-animation]
383 questions
0
votes
1 answer
Python matplotlib.animation Jupyter Notebook
I use Windows 10 / 64 / Google chrome
I found a good set-up for animation over Jupyter with the call %matplotlib notebook as here :
import numpy as np
import scipy.stats as st
%matplotlib notebook
import matplotlib.pyplot as plt
import…

CechMS
- 140
- 10
0
votes
0 answers
Animated 2D heat map
I have a function u(x,y,z,t) and I wanted to plot (x,y) animated heatmap with colorbar (u_min, u_max) where t is parameter for time animation. I've analyzed the examples, but it looks complicated. The z parameter will be constant. The defined…

Agata Bielecka
- 1
- 1
0
votes
0 answers
how to delete annotation in Seaborn (live)heatmap?
I'm trying to make live stock heatmap, which updates it's data every 0.2 seconds with stock ticker/price annotations on it. But when I started code for first time, i found that Seaborn puts another annotations without deleting the previous one every…

krvkn
- 13
- 1
- 2
0
votes
1 answer
Matplotlib Animate does not render when blit is set to be True
I am trying to use animation.FuncAnimation within a function. The goal is to make an animated demonstration of an orbit in a two body model.
The function that calls the animation is setup as follows:
def plot_animate(r, bod_rad, steps, dt):
…

Abhilekh
- 13
- 3
0
votes
0 answers
Matplotlib Animation doesn't draw lines as expected
I try to draw lines with Matplotlib Animation from numpy array of (3000, 2) shape. My code is a compilation from matplotlib examples and this answer :
import matplotlib.pyplot as plt
import matplotlib.animation as anim
import numpy as…

gipulo
- 1
0
votes
1 answer
How to update a shape on Matplotlib?
I have a rectangular shape which is drawn on an image. I would like to move that shape around, ie change its coordinates, plot the new shape and remove the old one (the background image stays the same)
Something similar to this code. It shows a…

Aenaon
- 3,169
- 4
- 32
- 60
0
votes
0 answers
How to combine matplotlib chart with networkX graph in one function?
I developed the following code_1 which renders figure_1.
import matplotlib.pyplot as plt
import numpy as np
import networkx as nx
from matplotlib.animation import FuncAnimation
import random
from itertools import count
from matplotlib import…

mac179
- 1,540
- 1
- 14
- 24
0
votes
0 answers
How to make matplotlib animations with axes?
I'm trying to simulate the interactions between cells on a growth medium. The problem is that I used many arcs to depict the deformed cell membranes so it is difficult to use methods like set_data. Is there a way to plot the frame one by one with an…

tctco
- 45
- 6
0
votes
0 answers
Animating a Scatter Plot with Respect to Time
I currently have an array G = [x,y,t] where each spatial point (G[0][i], G[1][i]) has a time component t = G[2][i]. The array is sorted by time. I am trying to animate the scatter plot so points show up in chronological order and do not disappear.…

mathguy424
- 1
- 2
0
votes
1 answer
animation.Funcanimation() Matplotlib / How to use it properly?
Sample Data:
Area Africa Asia Europe N_America S_America Australia Antarctica
Y1961 -0.17 0.49 8.74 0.17 1.16 1.51 2.80
Y1962 -0.40 -0.08 3.00 -0.58 -1.39 1.23 -2.27
Y1963 0.64 2.66 1.03 …

Hakan Akgün
- 872
- 5
- 13
0
votes
0 answers
How to update Matplotlib graph in real-time from a real-time updating text file?
I'm trying to update a graph in real time from an updating .txt Notepad++ file. In other words, random numbers are printed to the text file, then the python script reads the numbers from the text file and plots it.
I assumed that Multi-threading…

Star Man
- 171
- 1
- 2
- 11
0
votes
2 answers
Using Python's Matplotlib how can I align annotation updates for specific points to my data set as it is graphed using FuncAnimation?
I have the following code that functions perfectly with the exception that the timing of placing my point annotations and updating the legend does not align to when the point appears on the graph. How do I get them to align?
import numpy as…

ParkerWilliams
- 329
- 1
- 3
- 19
0
votes
1 answer
How to create an animation, where the point will move along the elliptical line?
I need to create moving point using matplotlib.animations library, also I need to show the center of the ellipse. Can someone edit my code and help me with this project?

Nadīna Tarnovska
- 19
- 3
0
votes
1 answer
Embedding a Matplotlib Animated Graph into Tkinter
I am creating a program to model different planetary orbits and while I have the designs down I am struggling to embed an animated plot into the GUI itself. The animation itself works but that is with plt.subplots() instead of plt.Figure()
Here is…

TomB
- 3
- 1
0
votes
1 answer
How do I update 3D quiver FuncAnimation from a data in csv file?
I need help on how to update 3D quiver head value from csv
currently, I have a csv file with 3 columns of x, y, z axis that I want to update into u,v,w variable on my python code.
The problem I am facing is that the result animation does not animate…

pkman
- 3
- 3