Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Line # Mem usage Increment Line Contents
- ================================================
- 12 54.1 MiB 54.1 MiB @profile
- 13 def __init__(self, parent):
- 14
- 15 54.1 MiB 0.0 MiB self.drawplotFrame = tk.Frame(parent, width=500, height=500)
- 16 54.2 MiB 0.0 MiB self.drawplotFrame.pack()
- 17
- 18 54.2 MiB 0.1 MiB self.fig = Figure(figsize=(16, 11))
- 19 54.6 MiB 0.3 MiB self.p = self.fig.add_subplot(1, 1, 1)
- 20 111.9 MiB 57.4 MiB self.p.plot(range(1500000), range(1500000))
- 21
- 22 123.8 MiB 11.9 MiB self.drawplotCanvas = FigureCanvasTkAgg(self.fig, master=self.drawplotFrame)
- 23 123.8 MiB 0.0 MiB self.drawplotCanvas.get_tk_widget().pack(side=tk.TOP, fill=tk.BOTH, expand=1)
- 24 121.0 MiB -2.8 MiB self.drawplotCanvas.get_tk_widget().destroy()
- 25 121.0 MiB 0.0 MiB plt.close(self.fig)
- 26
- 27 121.0 MiB 0.0 MiB gc.collect()
- 28
- 29
- 30 121.0 MiB 0.0 MiB print()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement