From: Ted D. <ted...@jp...> - 2005-06-07 16:53:29
|
Darren, You are correct - the way the Qt window is being draw causes the toolbar to overlay the plot so you end up w/ a reduced size plot. The real problem is that we used a QtToolbar class to implement the toolbar. The QtToolbar supports dragging, collapsing, and unhooking of the toolbar just like MS Word and other applications. This makes it very difficult to control where the toolbar ends up and control the final sizes of the widgets. I think the simplest fix is change the toolbar to a collection of buttons and explicitly control the layout for them. It shouldn't be very difficult but I'm going on vacation tomorrow so we might not get to it until next week. While we're doing this we'll also move the numeric x,y readout into the toolbar (it's currently below the toolbar) to save space and follow the pattern used in the Tk and Gtk backends. Ted > > I have a question about figure size in pylab, which presently includes the > toolbar. I think figure(figsize=(3,3)) should create a 3x3in plot > window, and > append the toolbar below it. The effect is more noticeable on the QtAgg and > WXAgg backends, where the coordinates are reported below the toolbar. Is > this > a bug or a feature? > > Darren > |