Re: RE: Labelled ticks at the origin

• To: mathgroup at smc.vnet.net
• Subject: [mg70895] Re: [mg70865] RE: [mg70840] Labelled ticks at the origin
• From: Murray Eisenberg <murray at math.umass.edu>
• Date: Wed, 1 Nov 2006 03:55:03 -0500 (EST)
• Organization: Mathematics & Statistics, Univ. of Mass./Amherst
• References: <200610301032.FAA13336@smc.vnet.net>

```Perhaps folks use ticks and labels along the axes themselves because
that's exactly what we learn in math classes?

David Park wrote:
> Why do you use an Axes plot and put ticks and labels all across your
> beautiful function or data? You will very seldom, if ever, see anything like
> that in a top technical journal.
>
> Use a two sided Frame and the function is not stomped on and the zero tick
> label comes back.
>
> Plot[2.1 Sin[2 Pi x], {x, 0, 1},
>     PlotRange -> {{0, 1}, {-2.1, 2.1}},
>     Frame -> {True, True, False, False},
>     FrameTicks -> {{0.5, 1}, {-2, -1, 0, 1, 2}},
>     AxesStyle -> GrayLevel[0.8]];
>
> David Park
>
> From: AES [mailto:siegman at stanford.edu]
To: mathgroup at smc.vnet.net
> To: mathgroup at smc.vnet.net
>
>
> Many of us have noted, and even discussed on this group, Mathematica's
> inexplicable -- or is it just obstinate? -- refusal to put labelled Tick
> marks at the origin, even when there's plenty of room for them and no
> interfering axis in the way, or even an explicit request to do so, e.g.
>
>    PlotRange->{{0, 1}, {-2.1, 2.1}};
>    Ticks->{{0.5, 1.0}, {-2, -1, 0, 1, 2}};
>
> This note is just to put on record a minor gimmick that most Mathematica
> experts probably already know:  if you convert the second line to
>
>    Ticks->{{0.5, 1.0}, {-2, -1, {0.001,"0"}, 1, 2}};
>
> you'll get just what you want (unless of course Mathematica decides to
> strike back at you in some hidden way elsewhere as punishment for your
> sneaking around its rigid rules and regulations).
>
>
>

--
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305

```

• Prev by Date: Re: FindRoot, suppressing complex interval-numbers
• Next by Date: Graphics--Exporting Graphics, drawing multiple objects at once and what not
• Previous by thread: Re: Matching with a "Flat" function
• Next by thread: Graphics--Exporting Graphics, drawing multiple objects at once and what not