Thanks John, I think I'd better use a sf patch initially so that you or others can review and improve it. I'll definitely need some help with documentation as my English can be horrible sometime. On the other hand, it would be much easier for me to do some maintenance work if I can commit the changes directly. So, my sf id is "leejjoon" and it will be great if you add me as a developer.
I guess this fancy box thing can be used with other artist objects also, although the legend object is an only object I can think of now. And my personal inclination is put those support code into patches.py and have a patch class around it, i.e., a FancyBoxPatch class which is initialized with bbox-like object and draw a fancy box around the given bbox. And let the Text and the Legend class use this FancyBoxPatch. In the current matplotlib, both the Text and the Legend class uses the Patch class for drawing a bbox. So how do you think? What I also want to see in matplotlib is a fancy annotation. I have some working code (although I'm planning some major code reorganization) and willing to contribute it if there is an interest (see the attached example). As you can easily guess, the fancy annotation share some of its core with the fancy box. So if you're also willing to include the fancy annotation things in matplotlib, I'll put some more effort in the code reorganization so that it can nicely fit in the current matplotlib classes. Regards, -JJ ps. I just wanted to mention that implementing these fancy boxes became possible with the bezier path support in matplotlib. So my thanks to Michael. On Fri, Sep 12, 2008 at 11:45 AM, John Hunter <[EMAIL PROTECTED]> wrote: > On Thu, Sep 11, 2008 at 4:19 PM, Jae-Joon Lee <[EMAIL PROTECTED]> wrote: >> Thanks John, >> >> I'm afraid that I'm not quite sure what you're suggesting, and will be >> grateful if you describe it more specifically. > > Sorry Jae-Joon -- I was in a big hurry yesterday (in the financial > industry we're a bit busy these days) and I forgot that the > mind_reader module had not yet been committed to svn. > > First, I'd like to say that these boxes look really nice, and I think > they enhance presentation charts in many contexts (eg business > presentations) so thanks a lot for contributing them. > > I think the best organization is to put all of this functionality > (including the textbox code) into text.py and have the default text > instance support both the standard text box (Rectangle) and the > enhanced ones you have provided. So basically, just your text.py > patch and move all the support code into text.py. I'd also like to > put your example file in the pylab examples directory and add it to > examples/tests/backend_driver.py. > > If you can do all that and submit it as a sf patch, that would be > great. Alternatively, if you would like to send me your sf id, I can > add you as a developer and you can contribute it directly. > > Thanks again, > JDH > > JDH >
<<attachment: test_fancy_annotation.jpg>>
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel