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

Function draw_figure

DemoPrograms/Demo_Pyplot_Bar_Chart2.py:41–45  ·  view source on GitHub ↗
(canvas, figure, loc=(0, 0))

Source from the content-addressed store, hash-verified

39# ------------------------------- Beginning of Matplotlib helper code -----------------------
40
41def draw_figure(canvas, figure, loc=(0, 0)):
42 figure_canvas_agg = FigureCanvasTkAgg(figure, canvas)
43 figure_canvas_agg.draw()
44 figure_canvas_agg.get_tk_widget().pack(side='top', fill='both', expand=1)
45 return figure_canvas_agg
46
47# ------------------------------- Beginning of GUI CODE -------------------------------
48

Callers 1

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected