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 

"How To" for new axis labeling feature

 
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions
View previous topic :: View next topic  
Author Message
raswaim



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

PostPosted: Sun Apr 10, 2005 10:34 pm    Post subject: "How To" for new axis labeling feature Reply with quote

David - I see in the revision history that you've added a new feature for general purpose axis labeling, but I haven't tripped over the mechanism for using it yet. Can you give me a pointer?

Thanks - Richard
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon Apr 11, 2005 1:08 am    Post subject: Reply with quote

Text>X Labels.

And thanks for the suggestion.
_________________
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 Apr 11, 2005 11:47 am    Post subject: Reply with quote

Excellent. Is there a macro/DDE call in the works to set these?
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon Apr 11, 2005 12:10 pm    Post subject: Reply with quote

Yes, though somehow I neglected to document it.

[XLabel(x,"label")]

repeat as needed. You can have up to 20 labels. To replace an existing label use the same x value. To delete an existing label at a specific x, use

[XLabel(<x>,"")]

I expect you'll be wanting a few more placement options, which is fine. Like... place these labels one character height below the numbers (horizontal orientation only), and possibly set the orientation independent of the setting for the numbers. Those two will most likely go into the next release and won't break anything in the current version. I wanted to wait for other suggestions from you and others before plugging those in, on the chance that those suggestions might be better incorporated into those options from the start rather than adding them on later.
_________________
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 Apr 11, 2005 1:45 pm    Post subject: Reply with quote

Ok, so there was a good reason I couldn't find it.... The only other thing that occurs to me immediately as an improvement is having a mechanism for querying the locations of the currently assigned grid lines so I could apply my labels to them (and/or forcing grids to be drawn at the x-values specified). I suppose one could always disable grids and just use the reference line facility for the second purpose. Querying the grid locations would be handy in that you already have a default gridding mechanism that works, so I'd be relieved of calculating the appropriate intervals from the extents. Conversely, I've noticed that your date grids tend to ignore user specified intervals (don't think I would classify this as a bug since it gives reasonable results for calendar dates), so I might want to hard specify the labels and grids occasionally.
_________________
- RAS
Back to top
View user's profile Send private message
raswaim



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

PostPosted: Mon Apr 11, 2005 1:48 pm    Post subject: Reply with quote

Actually just thought of an additional feature you might want to consider, which is the ability to control which axis (primary or secondary) the labels are applied to (or for that matter, generically to Y-axis as well....).
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon Apr 11, 2005 6:24 pm    Post subject: Reply with quote

Richard,
Thanks for all of your input.

Quote:
The only other thing that occurs to me immediately as an improvement is having a mechanism for querying the locations of the currently assigned grid lines so I could apply my labels to them (and/or forcing grids to be drawn at the x-values specified).


I'll add an XTYP_REQUEST (DPlot_Request in DPLOTLIB lingo) to get the tick mark interval for the X and Y axes. And an option for the labels to draw an extra grid line at that location if there isn't already one there.

Quote:
I suppose one could always disable grids and just use the reference line facility for the second purpose.


Way too much trouble, and you're being too easy on me by suggesting this Smile

Quote:
Conversely, I've noticed that your date grids tend to ignore user specified intervals (don't think I would classify this as a bug since it gives reasonable results for calendar dates), so I might want to hard specify the labels and grids occasionally.


"Ignore" is a bit strong, but yeah DPlot will do its own thing here regardless of what settings you use (which brings up the point that I need to document this). Short version: if the X extents are > 60 days and the tick marks interval is set to:

  • <30 - tick marks are drawn at the 1st and 15th of every month
  • <60 - tick marks are drawn at the 1st of every month
  • <180 - tick marks drawn at the 1st of every other month
  • <360 - tick marks drawn at the 1st of every 6th month
  • otherwise tick marks are drawn at Jan 1.


Quote:
Actually just thought of an additional feature you might want to consider, which is the ability to control which axis (primary or secondary) the labels are applied to (or for that matter, generically to Y-axis as well....).


I should have seen this one coming and didn't, but it's no problem, either. Thanks again for your suggestions.
_________________
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 May 09, 2005 10:35 am    Post subject: Reply with quote

David - after playing with the date formats a bit more, I'm a little more concerned about the inability to override your grid interval computation. I'm creating large format time based charts (i.e. D size, ~6mo of data) with a great amount of detail, and need to have better control over gridlines. For example, if your date function defaults to 1st and 15th of the month there's no way for me to setup minor gridlines to the day or two day level (which are quite visible on a 34 inch width). Further, with the new day of year format (thanks) the arrythmic gridding created is a bit annoying (day 1,15,32,46...). Any chance you can add an option to use the user specified extents and intervals? (actually I'm not sure you really need to add a control for this; if I click "specify interval", I kind of expect not to get an automatic result... Wink ) - Richard
Back to top
View user's profile Send private message
raswaim



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

PostPosted: Mon May 09, 2005 10:48 am    Post subject: Reply with quote

OK, strike the part about not being able to get the single day gridlines, I see now that you dynamically adapt the minor grids (not a fixed number between major grids). But the arrythmic numbering is still annoying....
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon May 09, 2005 10:56 am    Post subject: Reply with quote

Richard,
In your case I can easily see how this is annoying. I think most users would welcome the "15 days = 1/2 month" bit that's going on, though... so I need to somehow satisfy both groups. Maybe a "real days" interval Smile
_________________
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 May 09, 2005 11:27 am    Post subject: Reply with quote

It looks like you don't have any problem accepting 0.5 months in the interval specifications currently, so perhaps this could be the mechanism for the behaviour you currently implement? There's probably a lot less disagreement about what a half month should look like vs. what 15 days means.... Beyond that, just the fact that I can't force any major (labeled) grids any closer together than 15 days (depending on extents) is an issue. For the most part, anything beyond 4 minor grid lines is "many", and an (irregular) 14 has people counting and marking days in pencil in the margins of my charts!
_________________
- RAS
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon May 09, 2005 5:54 pm    Post subject: Reply with quote

Richard,
Thanks for your persistence. It didn't register with me until your last post how atrocious this really was. It needs work yet, but for now I've changed things up such that if you specify a tick mark interval less than 30 days, that's the interval that will be used. No more "if the extents are > 2 years and blah blah blah".

With any luck I'll be uploading an update late tonight with this change in place.
_________________
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 May 09, 2005 7:03 pm    Post subject: Reply with quote

David - I imagine the gridding really isn't a big problem for anyone unless they're doing huge charts, since your original defaults work fine for "normal" size plots. As always, I appreciate your willingness to accomodate user request. Thanks - Richard
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DPlot Forum Index -> Suggestions/Questions 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