Use of XY(x,y) - Time Format Data?

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Use of XY(x,y) - Time Format Data?

Post by raswaim »

When using the XY(x,y) macro command to add points, is it possible to specify the x coordinate in a time format (e.g. XY(3:05:22, 7) ), and if so, what is the required syntax?
- RAS
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Richard,
That's not possible currently. I'll add it to the to-do list. The format will likely be fairly strict; a colon will be an absolute requirement. All of these would work for 5:58PM:

5:58:00 PM
5:58:00 pm
5:58 PM
05:58 PM
17:58
Visualize Your Data
support@dplot.com
raswaim
Posts: 69
Joined: Thu Jan 06, 2005 3:43 pm
Location: Houston, TX

Post by raswaim »

Hmmm... doesn't look like you accept hex either.... Well if it's not already a capability of XY, rather than complicating and potentially slowing down that code, maybe an alternative would be adding another call with some additional flexibility. Something like an XY_Formatted(x,y) where the formats for both X and Y can be previously set with something like C-style scanf parameters (plus time formatting extensions)? Or I suppose just adding a call to set the expected syntax for the existing XY command would work (only slowing down XY if a non-default was set).

BTW - in your strict syntax, would 5:58:00.123456 be allowed to give me microsecond resolution?

Thanks - Richard
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

BTW - in your strict syntax, would 5:58:00.123456 be allowed to give me microsecond resolution?
Yes (now that you mentioned it :-))
Visualize Your Data
support@dplot.com
Post Reply