Re: data format on y axis
- To: mathgroup at smc.vnet.net
- Subject: [mg79972] Re: data format on y axis
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Fri, 10 Aug 2007 01:39:15 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <f9eq81$png$1@smc.vnet.net>
Arkadiusz.Majka 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, ...} 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. -- Jean-Marc