From: Ken M. <mc...@ii...> - 2005-12-02 20:47:06
|
On 12/02/05 14:11, Matt Newville wrote: > Ken wrote: >>I can't think of any features that can't be wrapped away into a higher level >>interface, at least hypothetically. Things like creating two subplots that >>share an X axis (so they zoom together) would be a bit hairy, but I'm sure it >>could be done. > > Oh, well I think this would get so application specific that it would > be just as easy to do it at the GUI level than at the MPL level. That's possible, but there is already a quick and well-documented way to do it at the MPL level. Situations like that, where there's already a backend-portable way to do things, are what WxMpl tries to cater. >>That being said, it would be frustrating if you had to periodically rewrite >>the user interaction code to add support new things, like subplots and >>overlapping Axes. Providing this kind of support initially was an important >>goal while writing WxMpl. > > Oh the 'user-level support code' is definitely the larger part of the > work for adding any plot type. I should have been more specific and said "plot-level user interaction code, like zooming". For example, adding support for subplots means you need to add support for picking out which Axes object the user has drawn the selection over and rejecting the selection if it overlaps multiple Axes. Ken |