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

Function draw_figure

DemoPrograms/Demo_Matplotlib_Animated.py:15–19  ·  view source on GitHub ↗
(canvas, figure, loc=(0, 0))

Source from the content-addressed store, hash-verified

13# Yet another usage of MatPlotLib with animations.
14
15def draw_figure(canvas, figure, loc=(0, 0)):
16 figure_canvas_agg = FigureCanvasTkAgg(figure, canvas)
17 figure_canvas_agg.draw()
18 figure_canvas_agg.get_tk_widget().pack(side='top', fill='both', expand=1)
19 return figure_canvas_agg
20
21def main():
22

Callers 1

mainFunction · 0.70

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected