On 7/14/12 5:13 PM, ObsessiveMathsFreak wrote:
> The current support for arrows in sage plots currently isn't very
> satisfactory. Arrows have odd behaviour, and "fat" heads with no obvious
> styling options. The following code
>
> arrow2d((0, 0), (2, 3), color="red")+point((2,3))
>
> Generates an arrow, but the head does not reach the required point, and
> the tail does not touch the origin. I can find no documentation or
> methods for drawing an arrow which does so.
>
> A related point is the lack of arrow in plot axes. It would be nice to
> have a simple "Arrows=true" but again this does not seem to be available.
That's right; it's not available as an option. It would be great to add
it! You'd need to look into how to do with matplotlib and add the
necessary code, I think in SAGE_ROOT/devel/sage/sage/plot/graphics.py.
>
> Are there workarounds for these issues, arrows not touching endpoints
> and arrows on axes? I've tried looking into calling matplotlib directly,
> but again, I haven't been able to find much in the way of arrow
> documentation.
http://trac.sagemath.org/sage_trac/ticket/12836 should have fixed the
too-short arrows in 5.1.
Jason