Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Plotting: how does one reverse the time axis tick mark values?
Replies: 1   Last Post: Jul 19, 2012 3:50 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
James Stein

Posts: 12
Registered: 8/12/10
Plotting: how does one reverse the time axis tick mark values?
Posted: Jul 18, 2012 1:36 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

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.




Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.