Skip to content

Commit

Permalink
show becomes draw for newer matplotlibs
Browse files Browse the repository at this point in the history
  • Loading branch information
jonwright committed Jul 1, 2019
1 parent 1e07b4b commit e61138a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Fabian/ImagePlot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def __init__(self,master,title='Plot',
self.f = Figure(figsize=(8,5), dpi=100)
#self.f.subplots_adjust(hspace = .2)
self.plotcanvas = FigureCanvasTkAgg(self.f, master=self.master)
if not hasattr( self.plotcanvas, "show"):
# show went away in recent matplotlibs...
self.plotcanvas.show = self.plotcanvas.draw
self.plotcanvas.show()
self.plotcanvas.get_tk_widget().pack(side=TOP, fill=BOTH, expand=1)
frameInfo = Frame(self.master, bd=0)
Expand Down

0 comments on commit e61138a

Please sign in to comment.