DPlot Forum Index DPlot
http://www.dplot.com
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Label Point formatting with $=<expr>

 
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Sun Jul 12, 2009 9:30 am    Post subject: Label Point formatting with $=<expr> Reply with quote

When using $=(round($Y,3)) to limit significant digits for point labels, I noticed that if I'm using $X in the same label, the $X reverts to the the default numeric format. Specifically, when using a time/date formatted X axis, instead of the label printing the $X date in the same format as the X-Axis, you get the Excel numeric date instead. I'd be OK with this if there was something like a "DateFormat(<X>)" function to apply, but right now I have to use two labels if I want X date format and Y data.
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Sun Jul 12, 2009 11:43 am    Post subject: Reply with quote

Thanks, Richard.

You'd also have that problem with Y if it used some other number format (currency, for example). And there's the problem with automatically handling this. If the equation contains both X and Y, which number format should be used?

I think the answer is probably what you've already mentioned - something like $FORMAT(<expression>,<format code>).
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Sun Jul 12, 2009 1:16 pm    Post subject: Reply with quote

Yes - I realized after I posted that a generic formatting call (like printf) would probably be the best solution. I could set precision where I wanted it (or even completely different formats?). For example, I frequently have plots which have time down to HH:MM on the X axis, but for a label I'm trying to highlight an event down to seconds. And for the Y axis I've run across situations where I'd like to tag a value in decimal or hex when that isn't the format of the Y-axis...
_________________
- RAS
Back to top
View user's profile Send private message
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Thu Nov 12, 2009 1:03 pm    Post subject: Reply with quote

By any chance have you had some time to look at this option more? I think I just ran into another instance where I can't work around the default format... I'm doing an XY bubble plot, and I want to label a point with it's "Z" value, which happens to be a time in this case. The excel value 42018.234 wasn't as informative a label as I would like. Is there any way for me to affect the displayed format? Thanks - R
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Thu Nov 12, 2009 2:04 pm    Post subject: Reply with quote

Oops, this one fell through the cracks. Will get on this one as soon as possible.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Mon Jun 28, 2010 4:42 pm    Post subject: Reply with quote

Hmmm.... and into the crevasse beneath the cracks? Laughing
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


Joined: 24 Jun 2003
Posts: 2310
Location: Vicksburg, Mississippi

PostPosted: Wed Jun 30, 2010 7:25 pm    Post subject: Reply with quote

It won't be in tonight's update, but I'll definitely 100% for sure address this in the next update.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
raswaim



Joined: 06 Jan 2005
Posts: 69
Location: Houston, TX

PostPosted: Thu Jul 01, 2010 12:21 am    Post subject: Reply with quote

Just wanted to make sure that this was still on the list... Your normal turnaround speed for things like this has me spoiled.

THanks - R
_________________
- RAS
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Bug Reports All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group