MCPcopy
hub / github.com/PySimpleGUI/PySimpleGUI / draw_figure

Function draw_figure

DemoPrograms/Demo_Matplotlib_Animated_Scatter.py:13–17  ·  view source on GitHub ↗
(canvas, figure)

Source from the content-addressed store, hash-verified

11"""
12
13def draw_figure(canvas, figure):
14 figure_canvas_agg = FigureCanvasTkAgg(figure, canvas)
15 figure_canvas_agg.draw()
16 figure_canvas_agg.get_tk_widget().pack(side='top', fill='both', expand=1)
17 return figure_canvas_agg
18
19def main():
20 # define the form layout

Callers 1

mainFunction · 0.70

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected