= 20
window = SubPlotter(12, 4, "MyData", [["Data0", "time", "y", 2, window, 121, ['line1','line2']],
plotter "Data1", "time", "y", 2, window, 122, ['line1','line2']]])
[
for x in range(10):
= random()-0.5
y11 = random()-0.5
y12 0, x, [y11, y12])
plotter.add_data(= random()-0.5
y21 = random()-0.5
y22 1, x, [y21, y22])
plotter.add_data(
plotter.draw()
Plotting
Plotting classes.
SubPlotter
SubPlotter (width, height, title, plotsconfig=[['title', 'xlabel', 'ylabel', 1, 0, 111, ['line1']]], linewidth=2, legend_fontsize=8)
Initialize self. See help(type(self)) for accurate signature.
run_hpct_animation
run_hpct_animation (hpct, counter=None, plotter=None, interval=1, verbose=False)
= 20
window = SubPlotter(12, 8, "MyData", [["Data0", "time", "y", 2, window, 211, ['line1','line2']],
plotter "Data1", "time", "y", 2, window, 212, ['line1','line2']]])
[
for x in range(10):
= random()-0.5
y11 = random()-0.5
y12 0, x, [y11, y12])
plotter.add_data(= random()-0.5
y21 = random()-0.5
y22 1, x, [y21, y22])
plotter.add_data(
plotter.draw()
= 20
window = SubPlotter(12, 8, "MyData", [["Data0", "time", "y", 2, window, 221, ['line1','line2']],
plotter "Data1", "time", "y", 2, window, 222, ['line1','line2']],
["Data2", "time", "y", 2, window, 212, ['line1','line2']]])
[
for x in range(10):
= random()-0.5
y11 = random()-0.5
y12 0, x, [y11, y12])
plotter.add_data(= random()-0.5
y21 = random()-0.5
y22 1, x, [y21, y22])
plotter.add_data(= random()-0.5
y21 = random()-0.5
y22 2, x, [y21, y22])
plotter.add_data(
plotter.draw()