On Mar 29, 2007, at 10:55 AM, Iyer wrote: > > That's unfortunate that a subplot cannot be bounded within a > scrollbar.. I guess if it could be possible to turn a subplot into > a GUI widget and have GUI widgets over another GUI widget (the > frame), that'd be good...
I think that wouldn't be good at all, for a simple reason: matplotlib has no way of calculating how big a figure or subplot should be. Instead, it's up to the programmer to determine what the appropriate size is. It can also be tedious and error-prone to do fixed layouts with stacked widgets, depending on the GUI toolkit you're using. Because plotting is so flexible and matplotlib supports so many kinds of plots, I believe it would hard to come up with general algorithm to determine how big to make a figure or subplot. It gets even more complicated if you start considering things like resolution independent plotting -- different operating systems and displays can have dots-per-inch ratios and PNG or PS files will almost certainly have different DPIs than the graphical displays. > I was wondering how we can differentiate between data on a subplot > and the background. i.e, if there is a subplot such as: > > _________________________________ > | ______/\___ | > | / \ | > | \ | > |_________________________________| > > what could be the best way to predict where the subplot starts and > ends ? I'm afraid I can't read your diagram at all... Mac Mail might have mangled it. Personally, I think you ought to reconsider how you're designing your application. Scrolling subplots sounds like a really confusing interface to me. I think you might be a lot happier zooming in on interesting things with a mouse or splitting your plots up into multiple separate figures. Ken ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users