On 2014/02/02 7:45 PM, Alan G Isaac wrote: > Last question about this for now ... > > Yet another issue with `arrow`: the > docs say a dashed linestyle is supported > http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.arrow > but really it is not: the *edge* is dashed rather than the tail! > > Maybe I'm missing the intended usage here. But > I'm starting to think Matplotlib could use a "SimpleArrow". > The tail would just be a line. > The head would just be a filled triangle. > The default would be length_includes_head=True. > > Alan Isaac >
Alan, I think you are raising good points. (The default of not including the head in the length is puzzling, to say the least.) Actually making a *good* simple arrow is not as simple as it might seem, but it can be done. The main difficulty is the need to use a mix of coordinates and transforms to handle varying axes sizes and aspect ratios. In any case, I think you have pointed to one of many areas where mpl's present design and user interface could be improved. It's all a matter of volunteer labor to make such improvements--with the added difficulty of needing to maintain backward compatibility over fairly long periods. For your immediate needs, might quiver work better? It's interface is also rather complex because of the use cases it covers. If you are using the arrows for annotation rather than as representations of vectors, then of course the annotate() function is appropriate. Eric ------------------------------------------------------------------------------ Managing the Performance of Cloud-Based Applications Take advantage of what the Cloud has to offer - Avoid Common Pitfalls. Read the Whitepaper. http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users