MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Arrowhead Directive for FrameStyle?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113519] Re: Arrowhead Directive for FrameStyle?
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Mon, 1 Nov 2010 04:59:26 -0500 (EST)
  • References: <iaj4nm$n6c$1@smc.vnet.net>

Arrowheads doesn't work because there are no arrows in the frame's
definition. I don't think I have ever seen an option to get them
either, so you might try Epilog to draw them yourself:

test = Plot[{curve0[x]}, {x, 0, 1},
  Frame -> {True, True, False, False},
  FrameStyle -> {None, None, None, None},
  Epilog -> { Thickness[0.000001], Arrow[{{0.9, 0}, {1.07, 0}}],
    Arrow[{{0, 0}, {0, 1.09}}]}, PlotRangePadding -> 0,
  PlotRangeClipping -> False,
  ImagePadding -> {{Automatic, 40}, {Automatic, 40}}]

Cheers -- Sjoerd


On Oct 31, 8:09 am, at <atorgovit... at gmail.com> wrote:
> How do you get arrowheads on an axes when using Frames within a Plot?
> For example if I do:
>
> test = Plot[{curve0[x]}, {x, 0, 1},
>   Frame -> {True, True, False, False},
>   FrameStyle -> {Directive[Blue], None, None, None}]
>
> Then I get a blue horizontal axes. But if I do
>
> test = Plot[{curve0[x]}, {x, 0, 1},
>   Frame -> {True, True, False, False},
>   FrameStyle -> {Directive[Arrowheads[.02]], None, None, None}]
>
> I get nothing.
>
> (I am using frames because my axes labels are long and frames place
> the labels below the axes rather than at the end--If you have a better
> solution to solving that initial problem then please let me know.)
>
> Thanks!



  • Prev by Date: NDSolve and hybrid dynamics (Differential Algebraic Equation DAE)
  • Next by Date: Re: Condensed syntax
  • Previous by thread: Re: NDSolve and hybrid dynamics (Differential Algebraic Equation DAE)
  • Next by thread: Re: Condensed syntax