Re: [Matplotlib-users] adding scrollbars to plot embedded in tk

2011-09-05 Thread Hans Bering
Hi Matt, a possible workaround seems to be to embed the figure's canvas in a second Tk canvas using canvas.create_window(...). The second (embedding) canvas handles the appropriate resizing & scrolling. I have attached a script below to demonstrate. Unfortunately, scrolling is rather sluggis

Re: [Matplotlib-users] adding scrollbars to plot embedded in tk

2011-08-31 Thread Benjamin Root
On Wed, Aug 31, 2011 at 2:55 PM, Matthew Hemke wrote: > I have a plot canvas added to a tk interface (python 2.7.2, matplotlib > 1.0.1) according to the recipe here: > > > http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html > > When the window containing the plot is re

[Matplotlib-users] adding scrollbars to plot embedded in tk

2011-08-31 Thread Matthew Hemke
I have a plot canvas added to a tk interface (python 2.7.2, matplotlib 1.0.1) according to the recipe here: http://matplotlib.sourceforge.net/examples/user_interfaces/embedding_in_tk.html When the window containing the plot is resized the plot shrinks, often leading to REALLY ugly, unreadable p