23 Sep 22:22
yet another fancy arrow, etc
From: Jae-Joon Lee <lee.j.joon@...>
Subject: yet another fancy arrow, etc
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-09-23 20:22:45 GMT
Subject: yet another fancy arrow, etc
Newsgroups: gmane.comp.python.matplotlib.devel
Date: 2008-09-23 20:22:45 GMT
Hello, I'm working on the fancy annotation thing I mentioned the other day, and I want to have some feedback and advice. As you see (http://dl.getdropbox.com/u/178748/test_fancy_annotation.jpg), the annotation will be consist of a fancy box + fancy arrow. And my current plan is to put the fancy arrow things as an arrow patch class in the patches.py. The new class would be very similar to the FancyBboxPatch class. It will take three control points of quadratic bezier path as an input, and will draw an arrow around this path (an example is attached). For example mypatch = YAFancyArrowPatch([(cx0, cy0), (cx1, cy1), (cx2, cy2)], arrowstyle="simple", ec="blue!50!white", fc="blue!20!white") But, patches.py already has three arrow classes. * Arrow(x, y, dx, dy) * FancyArrow(x, y, dx, dy) * YAArrow(figure, xytip, xybase) And I'm a bit hesitating in adding yet another arrow class. One way I'm considering is to merge my arrow class with the currently existing FancyArrow class (or other). But their interface is a bit different and I'm afraid that it may confuse users. So, how others think? Would it better to simply have a seperate arrow class or to have it merged into one of the existing arrow classes?(Continue reading)
RSS Feed