8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07d2e94 commit 0ea465aCopy full SHA for 0ea465a
lib/matplotlib/backends/backend_tkagg.py
@@ -735,12 +735,13 @@ def _init_toolbar(self):
735
736
def configure_subplots(self):
737
toolfig = Figure(figsize=(6,3))
738
- window = Tk.Tk()
+ window = Tk.Toplevel()
739
canvas = FigureCanvasTkAgg(toolfig, master=window)
740
toolfig.subplots_adjust(top=0.9)
741
- tool = SubplotTool(self.canvas.figure, toolfig)
+ canvas.tool = SubplotTool(self.canvas.figure, toolfig)
742
canvas.show()
743
canvas.get_tk_widget().pack(side=Tk.TOP, fill=Tk.BOTH, expand=1)
744
+ window.grab_set()
745
746
def save_figure(self, *args):
747
from six.moves import tkinter_tkfiledialog, tkinter_messagebox
0 commit comments