MathGroup Archive 2007

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

Search the Archive

Re: data format on y axis

  • To: mathgroup at
  • Subject: [mg79972] Re: data format on y axis
  • From: Jean-Marc Gulliet <jeanmarc.gulliet at>
  • Date: Fri, 10 Aug 2007 01:39:15 -0400 (EDT)
  • Organization: The Open University, Milton Keynes, UK
  • References: <f9eq81$png$>

Arkadiusz.Majka at 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, ...}

You can convert a number to a date/time thanks to DateString. For instance,

In[1]:= y = {70, 90, 120};
DateString[#, "Time"] & /@ y

Out[2]= {"00:01:10", "00:01:30", "00:02:00"}

You will have to manage the tick marks with the options Ticks and 
TicksStyle or FrameTicks and FrameTicksStyle.


  • Prev by Date: Re: ListPlot problem
  • Next by Date: Re: Integrate with PrincipalValue->True
  • Previous by thread: data format on y axis
  • Next by thread: Re: data format on y axis