Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
0 answers
66 views

When I try to use matplotlib's ``FFMpegWriter```. import matplotlib.animation as animation FFwriter = animation.FFMpegWriter(fps=10) ... ani.save('./temp/animation.mp4', writer = FFwriter) I get the ...
Uwe.Schneider's user avatar
0 votes
1 answer
104 views

When I plot the following code with 3 subplots using matplotlib, import numpy as np import matplotlib.pyplot as plt # ====================================== # Base ellipse parameters # ==============...
Arnab Dutta's user avatar
0 votes
0 answers
47 views

I am working on an interactive animation that allows the user to select several market indexes and compare their performance. With 2-3 tickers, the animation works fine, but it still slows down ...
Levente Faludi-Orszagh's user avatar
0 votes
0 answers
19 views

I'm trying to generate an animation for a heatmap varying through a few years. I'm having issues because I don't know how to keep the colorbar from flickering like in this GIF. This is the function I'...
maboi4's user avatar
  • 1
3 votes
2 answers
200 views

The code below generates random data, and displays it in realtime with Matplotlib. The sliders allow the user to change the y-axis range. All of this works. Problem: when resizing the window size or ...
Basj's user avatar
  • 47.5k
0 votes
1 answer
85 views

I'm a physics student. I'm trying to write a program to visualize complex functions in different ways using Python with matplotlib and numpy. I've written a class whose object takes as input, among ...
Luke__'s user avatar
  • 255
0 votes
1 answer
44 views

In Jupyter Lab on Windows, the matplotlib animation API documentation breaks when a no-op edit is added in the update loop. %matplotlib ipympl import numpy as np import matplotlib.pyplot as plt from ...
EricRobertBrewer's user avatar
0 votes
0 answers
33 views

I am writing a python code where it shows animated 4 bar charts ( 4 subplots). The code reads data from csvs which continuously gets updated. The data has columns data["niftychainceoi"] &...
amithapase's user avatar
1 vote
1 answer
91 views

In essence, I am trying to achieve this. But I'm struggling to understand how I might apply this to bars. I'm trying to visualise sorting algorithms using matplot (taking user inputs the establish ...
xaviersays's user avatar
1 vote
0 answers
20 views

trying to animate data of multiple trace using matplotlib animation but the result doesn't satisfy my request, I want to plot all trace of the steam simultaneously, but it draws only one trace each ...
yaser's user avatar
  • 11
0 votes
1 answer
73 views

We have gathered data from lasers measuring the displacement of a target that moves. One laser for the lateral movement and one for the vertical movement. From this data I want to animate the target's ...
Andreas Strandberg's user avatar
0 votes
0 answers
53 views

I am writing a python script to animate data from a list of .xyz files using matplotlib. However, the animation is actually static because each frame of the animation is displaying the data from the ...
user avatar
3 votes
1 answer
3k views

import matplotlib.pyplot as plt import numpy as np plt.ion() # Turn on interactive mode x = np.linspace(0, 10, 100) y = np.sin(x) for i in range(10): plt.plot(x, y * (i + 1)) plt.draw() ...
GREG's user avatar
  • 31
0 votes
1 answer
71 views

The following script runs standalone to run a scenario: The results are printed first, followed by the plot is closed with an animation. import numpy as np import matplotlib.pyplot as plt import ...
Nick's user avatar
  • 927
0 votes
1 answer
51 views

I write this import matplotlib.pyplot as plt x = [1, 2, 3, 4] y = [10, 20, 25, 30] plt.plot(x, y) plt.xlabel('X-axis') plt.ylabel('Y-axis') plt.title('Simple Plot') plt.show() But an issue has ...
PC Imane's user avatar
0 votes
1 answer
48 views

Can someone explain this Python code to me? I'm trying to understand the inner workings of this code, which generates an animated plot using Matplotlib. Here's a breakdown of what each part does: ...
Lenin de Castilhos's user avatar
1 vote
1 answer
70 views

I want to plot y = omega*x^2 with omega varying from -3 to 3 with a step size of 0.25 (and x spanning -4 to 4 with a step size of 0.001). The current version of my code (below) only has omega start at ...
Ongky Denny Wijaya's user avatar
0 votes
1 answer
250 views

I want to plot animation of y=omega*x^2, which omega is -3 into 3 with step size 0.25, x from -4 into 4 with step size 0.001. I'm new studying plot animation in Python. I try to make a code but give ...
Ongky Denny Wijaya's user avatar
0 votes
1 answer
71 views

i am having issues with matplotlib animations when using xlwings, example from matplotlib: import matplotlib.pyplot as plt import numpy as np import matplotlib.animation as animation import xlwings ...
ewm's user avatar
  • 13
2 votes
1 answer
363 views

I have a dataframe that includes position data from all 9 players on a baseball field including the hitter throughout a given play as well as the ball trajectory. I need some help with figuring out ...
Newman's user avatar
  • 63
4 votes
2 answers
407 views

Using this dataset of % change by state, I have merged it with a cartographic boundary map of US states from the Census department: https://www2.census.gov/geo/tiger/GENZ2018/shp/...
Avery Freeman's user avatar
0 votes
1 answer
535 views

When i try to run the matplotlib animation notebook animate_decay.ipynb from matplotlib.org, all i get is an empty figure: axes and a grid, but no line object which changes. There are no errors ...
user1479670's user avatar
  • 1,355
0 votes
0 answers
105 views

In matplotlib, I can make a gif with “FuncAnimation” and export it with the method “to_jshtml()” that returns an HTML. The output adds a “scrubber” widget to the animation, which is great. Here is a ...
Leonel Quiroz's user avatar
3 votes
2 answers
231 views

I'm making a website in which users can input one NBA player and get an animation of their shots. The code is working properly, but when I load another NBA player (or the same NBA player the second ...
Yash Jain's user avatar
0 votes
1 answer
501 views

I'm trying to run an animation where a scatter plot is updated every timestep. I am working in a jupyter notebook in vscode (if relevant). The animation script, given below, runs great the first time ...
gargantuar's user avatar
0 votes
0 answers
62 views

I'm working on a project and I got a piece of code to work in a for loop just fine, as it works in a for loop, it should work in a func for making an animation of the actual array instead of just as ...
Faith's user avatar
  • 13
0 votes
1 answer
77 views

I use python and matplotlib to create bar chart race animation, the data is time series and keep update every day. I want only save updated frames to file, for example, the frames are 10460 unti ...
mikezang's user avatar
  • 2,509
1 vote
1 answer
39 views

The example code below creates 2 plots that attempt to convey what the desired animation is seeking to do. Note that the plot on the right is similar to the plot on the left, but represents the ...
user2256085's user avatar
0 votes
1 answer
168 views

I am trying to animate a plot using matplotlib's FuncAnimation, however it never outputs anything. The data is NetCDF, precipitation rates for the USA with coords for day, x and y. The x is longitude ...
clavulinopsis's user avatar
1 vote
1 answer
84 views

For a project, I need to plot the orbit of a particle around another in a Jupyter Notebook. I succesfully managed to do this in a for loop, printing the result only when the for loop is finished. Here ...
MyDePain's user avatar
0 votes
1 answer
37 views

I'm answering module on image processing and I wanted to show how the values of a given 2D image change based on the intensity of the values of each pixel. The only thing is that I can't seem to ...
Ken Azurin's user avatar
0 votes
1 answer
175 views

The program draws a one-parameter set of straight lines in real time. If I want to save as a gif what the program has output using camera.snap(), then I do not get the desired result. The question is, ...
Александр Евстратенко's user avatar
0 votes
0 answers
99 views

I have tried various methods of animating a colormesh plot. I believe that FuncAnimation is the simplest way for me to animate my colormesh. The code I have written is shown below r = np.linspace(0,R,...
Matthew Morrissey's user avatar
0 votes
1 answer
30 views

I am making a GUI which shows a graph of 4 different readings. Right now the readings are randomly generated. I am using matplotlib and animation to show live readings, where 2 of the readings are ...
generalzu10's user avatar
1 vote
1 answer
48 views

I am very new to python so I am sure my code looks a bit elementary. I have a vacuum chamber that I can communicate with via TCP commands. My goal for now is to plot pressure on one graph and ...
bttew's user avatar
  • 13
1 vote
1 answer
138 views

On the matplotlib website, all examples to create animation include this control bar: Which allows one to precisely select the time, to stop, and to play the animation in the desired direction. The ...
Johncowk's user avatar
  • 369
0 votes
1 answer
25 views

I am trying to animate stock prices from a csv file on a matplotlib graph and embed this onto tkinter. The issue is that I can't seem to get it to work with tkinter. The issue I am having is that it ...
user23520907's user avatar
0 votes
0 answers
50 views

The purpose of this code is to watch particles of random positions and velocities interact with each other but after a while when particles are getting very fast they start passing inside each other ...
Onur Karakaş's user avatar
0 votes
1 answer
142 views

I want to generate an MP4 file using frames produced by a rather complicated simulation. If I have to watch the movie as a side affect of generating it I will not complain too much, but would rather ...
GPU Programmer's user avatar
1 vote
1 answer
111 views

I'm experimenting with 1D time-series data and trying to reproduce the following approach via animation over my own data in GoogleColab notebook. I faced the problem of re-producing animation from ...
Mario's user avatar
  • 2,084
2 votes
1 answer
172 views

I am working on a Tkinter project where I am plotting live data from different sensors. I am using Tkinter to create the GUI and matplotlib animation.FuncAnimation to create live plots that update ...
PedroMat8's user avatar
0 votes
1 answer
140 views

I came to this problem when I tried to adjust the limits of the axis in the 3D animation. It seemed that the range of the limits on the screen is not what I want, but the output of the limits on the ...
beginner's user avatar
0 votes
0 answers
93 views

I'm currently developing an animation featuring a double pendulum, and I'd like to incorporate sliders to enhance user interaction. These sliders are designed to control the two initial angles of the ...
W.K.'s user avatar
  • 1
-1 votes
1 answer
91 views

I want to plot two sinusoidal functions. The generation of the plotting should be done according to the pixel size, like pixel by pixel. Any help regarding how to do this? The code I used to generate ...
www21's user avatar
  • 1
2 votes
1 answer
301 views

Intro to the task I am working on a simulating the orbit of moon Phobos around the planet Mars. I have completed the task of using numerical integration to update the velocity and position of both ...
Anay Chadha's user avatar
0 votes
2 answers
207 views

I am wondering if there is a way to map a 3D histogram from matplotlib to a color heatmap? For example I have a 3D histogram as How can I convert it to a heatmap where the height is shown as color of ...
Alex's user avatar
  • 1,264
0 votes
1 answer
145 views

I am attempting to animate data that I have previously saved by loading the numpy array for each frame. My code is as follows: fig, ax = plt.subplots(1, 1, constrained_layout = False) def routine(...
Jacob Ivanov's user avatar
1 vote
0 answers
52 views

I need to show live data from serial port into a canvas of PyQt5. Using PyQt5 and imported Ui file(MainTest_1.ui), Here I should get live data from serial port and after putting a number in the Port ...
user19396094's user avatar
2 votes
1 answer
80 views

running python 3.9: import matplotlib.pyplot as plot import numpy as np import matplotlib.animation as animation fig, plt = plot.subplots() myArray = np.array([[0, 1, 2, 3, 4, 5, 6], ...
user10149299's user avatar
0 votes
1 answer
652 views

I am trying to write a Python code to animate fluid flow over a cylinder. I can plot the streamlines fine but I am trying to draw velocity vectors on the plot. I am having problems with some of the ...
remusconnor's user avatar

1
2 3 4 5
9