File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1+ # pip install psutil
12import csv
23import psutil
3- import random
44import time
55
66x_value = 0
Original file line number Diff line number Diff line change 1- # Another way to do it without clearing the Axis
21# pip install mplcyberpunk
3- from itertools import count
42import mplcyberpunk
53import pandas as pd
64import matplotlib .pyplot as plt
@@ -27,7 +25,7 @@ def animate(i):
2725
2826 ax .set_xlim (left = max (0 , x .max ()- 50 ), right = x .max ()+ 5 )
2927
30- # Run this line instead if you want the xlim to be fixed at zero
28+ # Run this line instead if you want the left xlim to be fixed at zero
3129 # ax.set_xlim(xlim_low, (x.max() + 5))
3230
3331 current_ymin = y .min ()
@@ -39,7 +37,7 @@ def animate(i):
3937
4038 # Unfortunately, this effect does not work when using animation
4139 # Set a higher linewidth as a workaround
42- #mplcyberpunk.make_lines_glow()
40+ # mplcyberpunk.make_lines_glow()
4341
4442
4543ani = FuncAnimation (plt .gcf (), animate , interval = 1000 )
You can’t perform that action at this time.
0 commit comments