|
From: Gregor T. <gre...@gm...> - 2009-05-14 09:12:18
|
Thomas Coudrat schrieb: > Hello list, > > I am new here an i need help on something : I am using Matplotlib in > the wxPython GUI, and i am trying to draw a BIG canvas, in a SMALL > window, which would be scrollable. > My implementation works if i use simple text too long for the size of > the window (see example file) > But the problem with the canvas is that is resizes to fit the window, > and i would like to be able to draw HUGE figures, which would be > scrollable. > (in order print the figure, just uncomment the 3 lines, and comment > the wx.StaticText line) > > I hope i made my problem clear enough so that someone can help me out. > > Thanks in advance! It seems to me your implementation already provides what you want. But if you want to show huge figures, you have to make them huge: fig = matplotlib.figure.Figure(figsize=(10,10)) You could also try to inhibit scaling of the figure, box.Add(canvas, 0, wx.ALL), then the matplotlib figure inside the scrolled panel will always have the same size. Gregor |