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