On Thu, Mar 26, 2009 at 9:59 AM, Sandro Tosi <mo...@debian.org> wrote:
> Hi Jae-Joon, > thanks for the reply. > > On Thu, Mar 26, 2009 at 02:51, Jae-Joon Lee <lee.j.j...@gmail.com> wrote: > > You need to adjust the keyword arguments, such as head_width, etc. The > > But shouldn't the default arrow be a little bit "nicer" than it's now? :) > > > arrow command itself is poorly documented and its keyword arguments > > are explained in > > matplitlib.patches.FancyArrow. > > Ah, that's why even in pyploy.arrow() I could'nt find eny reference to > head_width & friends. In case I have some time to share on improve > arrow() docs, what docs should I look to? and changing > 'doc/api/pyplot_api.rst' is the right place to achieve it? > > > However, I recommend you to use > > annotate command instead of arrow (you can give empty string if you > > just need an arrow). For example, > > > > annotate("", (0.2, 0.2), (0.4, 0.4), > > arrowprops=dict(arrowstyle="->")) > > > > more examples, > > > > > http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo.html > > > http://matplotlib.sourceforge.net/examples/pylab_examples/annotation_demo2.html > > I already treated annotation, but I would like to give the readers (of > the book) a much wider toolbox, so introducing bare arrows after > annotations seems straigthforward. Have you seen the arrow and fancy arrow demos http://matplotlib.sourceforge.net/examples/pylab_examples/arrow_demo.html http://matplotlib.sourceforge.net/examples/pylab_examples/fancyarrow_demo.html Both of these use older and less sophisticated arrows that JJ's FancyArrowPatch http://matplotlib.sourceforge.net/api/artist_api.html?highlight=fancyarrowpatch#matplotlib.patches.FancyArrowPatch so perhaps the best thing for you to do would be to write an example using the FancyArrowPatch directly. JDH
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users