Page 1 of 1

Converting seconds to Real time

Posted: Thu Feb 03, 2005 5:56 pm
by sjroff
David,
Lets say I have an xy plot with the x axis from 0 to 10800 seconds (3 hours). I would like to show my x axis as 6:00:00 AM to the extent of 9:00:00 AM. I see in the help file, that a 6 refers to 6:00 AM, a 9 refers to 9:00 AM but how do I change to those extents without Dplot thinking those are seconds?

Posted: Thu Feb 03, 2005 6:16 pm
by DPlotAdmin
Edit>Operate on X with X=(x/3600)+6. Now your X values range from 6 to 9.

Then Options>Number Formats and select 'Time' from the Format list.

Posted: Thu Feb 03, 2005 7:24 pm
by sjroff
I have been using that equation, and others. I just realized that I had the "Specify Extents" previously check. It all works as expected now! Thanks for the prompt reply!

Posted: Fri Feb 04, 2005 12:52 am
by DPlotAdmin
Glad you figured it out, but now that you mention it I should probably automatically apply that transform to the extents, as well.