MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / PyplotSimple

Function PyplotSimple

DemoPrograms/Demo_Matplotlib_Browser.py:30–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29
30def PyplotSimple():
31 import numpy as np
32 import matplotlib.pyplot as plt
33
34 # evenly sampled time .2 intervals
35 t = np.arange(0., 5., 0.2) # go from 0 to 5 using .2 intervals
36
37 # red dashes, blue squares and green triangles
38 plt.plot(t, t, 'r--', t, t ** 2, 'bs', t, t ** 3, 'g^')
39
40 fig = plt.gcf() # get the figure to show
41 return fig
42
43def PyplotHistogram():
44 """

Callers

nothing calls this directly

Calls 1

plotMethod · 0.45

Tested by

no test coverage detected