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


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

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

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Bob Hanlon <hanlonr357@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Plotting: how does one reverse the time axis tick mark values?
Date Thu, 19 Jul 2012 07:54:39 +0000 (UTC)
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <ju8efv$9b0$1@smc.vnet.net> (permalink)
References <20120718053631.A933A6828@smc.vnet.net>
Lines 31
Organization Time-Warner Telecom
NNTP-Posting-Date 19 Jul 2012 07:54:56 GMT
NNTP-Posting-Host 2ff0c19d.news.twtelecom.net
X-Trace DXC=6d9mn9o98933Chd3\AAMc4C_A=>8kQj6=Y;@_o827nG38[[VY`XK543EFiONJ7[Go6`=RRL^m9hB3
X-Complaints-To abuse@twtelecom.net
X-Received-Bytes 1995
Xref csiph.com comp.soft-sys.math.mathematica:10979

Show key headers only | View raw


Show[plt = ListPlot[
   Transpose[{Range[6], Range[6]}]],
 Ticks -> {
   (Ticks /. AbsoluteOptions[plt, Ticks])[[1]] /.
    {x_, lbl_?NumericQ, r__} ->
     {x, 6 - lbl, r},
   Automatic}]


Bob Hanlon


On Wed, Jul 18, 2012 at 1:36 AM, James Stein <james@stein.org> wrote:
> 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

Re: Plotting: how does one reverse the time axis tick mark values? Bob Hanlon <hanlonr357@gmail.com> - 2012-07-19 07:54 +0000

csiph-web