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


Groups > comp.soft-sys.math.mathematica > #10974 > unrolled thread

Re: Plotting: how does one reverse the time axis tick

Started byTomas Garza <tgarza10@msn.com>
First post2012-07-19 07:51 +0000
Last post2012-07-19 07:51 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Plotting: how does one reverse the time axis tick Tomas Garza <tgarza10@msn.com> - 2012-07-19 07:51 +0000

#10974 — Re: Plotting: how does one reverse the time axis tick

FromTomas Garza <tgarza10@msn.com>
Date2012-07-19 07:51 +0000
SubjectRe: Plotting: how does one reverse the time axis tick
Message-ID<ju8e9b$996$1@smc.vnet.net>
This will do the trick in your specific example:
ListPlot[Transpose[{Range[6], Range[6]}],

 Ticks -> {{{1, 6}, {2, 5}, {3, 4}, {4, 3}, {5, 2}, {6, 1}}, Automatic}]
See  Help|Ticks|Scope|Ticks Positions and Labeling
-Tomas

> From: james@stein.org
> Subject: Plotting: how does one reverse the time axis tick mark values?
> To: mathgroup@smc.vnet.net
> Date: Wed, 18 Jul 2012 01:36:31 -0400
>
> 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.
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web