Skip to content

Commit 0c71522

Browse files
committed
Cleaned up comments
1 parent cab1c1b commit 0c71522

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

matplotlib/streaming/Generate_CPU_Data.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
# pip install psutil
12
import csv
23
import psutil
3-
import random
44
import time
55

66
x_value = 0

matplotlib/streaming/Plot_CPU_Usage.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
# Another way to do it without clearing the Axis
21
# pip install mplcyberpunk
3-
from itertools import count
42
import mplcyberpunk
53
import pandas as pd
64
import 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

4543
ani = FuncAnimation(plt.gcf(), animate, interval=1000)

0 commit comments

Comments
 (0)