From: Jae-Joon L. <lee...@gm...> - 2008-10-31 10:12:26
|
John, Thanks for the advice. I'll try to put some mre effort on the documentation. > - is using a string for connectionstyle the best choice? Ie, instead of:: > > connectionstyle="angle,angleA=0,angleB=90,rad=10" > > would we rather have something like:: > > connectionstyle=connectionstyle.angle(angleA=0,angleB=90,rad=10) > > The latter looks more pythonthic and extensible, because if we document the > connectionstyle API users can provide their own. Yes, I agree. As you know, I used strings for the "boxstyle" and the "arrowstyle" also, in a similar way of linestyle. But the string for connectionstyle seems to get too complicated. It is currently possible to do something like below, connetionstyle="custom", connector=patches.AngleConnector(angleA=0, angleB=90, rad=10) But I guess this can be simplified. And, I may gather those Connector classes under a single class (or a module). And same for arrowstyle classes and boxstyle classes. Regards, -JJ |