Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #10969

Plotting: how does one reverse the time axis tick mark values?

From James Stein <james@stein.org>
Newsgroups comp.soft-sys.math.mathematica
Subject Plotting: how does one reverse the time axis tick mark values?
Date 2012-07-18 05:36 +0000
Message-ID <ju5i1m$3pv$1@smc.vnet.net> (permalink)
Organization Time-Warner Telecom

Show all headers | View raw


I thought this would be simple, but I am stumped: I wish to display
values (on the y axis) for specific times (on the x-axis).
Conventionally, time on charts progresses from left to right, and this
is my desire. However, I want the ticks along the time axis to be
measured in what one might call "countDown units" or "reverse units",
for example "Myr before Present" or "Seconds before Midnight" or
"Centuries B.C.".

As a simple example, consider the result of
     ListPlot [ Transpose [ { Range [ 6 ] , Range [ 6 ] } ] ]
which displays the values 2, 3, 4, 5, 6 along the x axis.
My problem is how to construct this same chart, except with values 4,
3, 2, 1, 0  replacing 2, 3, 4, 5, 6.
The various ways I tried to do this also mirror-reflect the plotted y-values.
I looked for an option called something akin to
'TickMarkLabelFunction', but couldn't find one.

Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread


Thread

Plotting: how does one reverse the time axis tick mark values? James Stein <james@stein.org> - 2012-07-18 05:36 +0000

csiph-web