Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2007
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: data format on y axis

  • To: mathgroup at smc.vnet.net
  • Subject: [mg79995] Re: data format on y axis
  • From: harrisws at gmail.com
  • Date: Fri, 10 Aug 2007 01:51:14 -0400 (EDT)
  • References: <f9eq81$png$1@smc.vnet.net>

On Aug 9, 3:28 am, Arkadiusz.Ma... at gmail.com wrote:
> Hi,
>
> Is it possible to use date format on y axis in ListPlot or
> DateListPlot, i.e if I have time coordinate on y, say in seconds
> {70,90,120,...}, I would prefer to see {00:01:10, 00:01:30,
> 00:02:00, ...}
>
> Thx,
>
> Arek


Hello,

I'm not sure if there is a more elegant way, perhaps with a Table, but
it is possible to do as follows:
data = Table[{i, i}, {i, 30, 120, 30}];
a = ListPlot[data, Frame -> True, Axes -> False,
    FrameTicks -> {Automatic, {{30, "00:00:30"}, {60, "00:01:00"},
{90,
            "00:01:30"}, {120, "00:02:00"}}, None, None}]

Hope that helps
Wayne



  • Prev by Date: Re: Lattice operations
  • Next by Date: DisplayForm Problem
  • Previous by thread: Re: data format on y axis
  • Next by thread: Question about EventHandler - missing documentation