diff --git a/Demo_Matplotlib_Animated.py b/Demo_Matplotlib_Animated.py index 7616a6ec..37212b45 100644 --- a/Demo_Matplotlib_Animated.py +++ b/Demo_Matplotlib_Animated.py @@ -6,6 +6,7 @@ from matplotlib.figure import Figure import matplotlib.backends.tkagg as tkagg import tkinter as Tk +VIEW_SIZE = 50 # number of data points visible on 1 screen def main(): fig = Figure() @@ -38,7 +39,7 @@ def main(): ax.cla() ax.grid() - ax.plot(range(20), dpts[i:i+20], color='purple') + ax.plot(range(VIEW_SIZE), dpts[i:i+VIEW_SIZE], color='purple') graph.draw() figure_x, figure_y, figure_w, figure_h = fig.bbox.bounds figure_w, figure_h = int(figure_w), int(figure_h) diff --git a/__pycache__/PySimpleGUI.cpython-36.pyc b/__pycache__/PySimpleGUI.cpython-36.pyc new file mode 100644 index 00000000..d418c670 Binary files /dev/null and b/__pycache__/PySimpleGUI.cpython-36.pyc differ