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 

Issue with optional extents specification

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



Joined: 15 Jul 2005
Posts: 30

PostPosted: Mon Sep 26, 2005 5:43 pm    Post subject: Issue with optional extents specification Reply with quote

Hey, I've just tried to use the new optional extents feature of ManualScale. I am trying to specify y axis extents while leaving the x axis alone. Dplot seems to ignore the manual scale commands that leave some extents unassigned. I am using 2.0.1.1. Dplot obeys manual scale extents fine when they're given for both axes.
Here is the command that doesn't work [ManualScale(,0,,40)]
Here's a command that does work [ManualScale(5,0,30,40)]
Don't know what's up. I checked the revision history page and noticed that the version that introduced this functionality is 2.0.1.0, while the version I have is 2.0.1.1. Could this be the reason?
Thanks for any help,
Arthur
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon Sep 26, 2005 6:27 pm    Post subject: Reply with quote

That should work. I tried an example just now and it performed as advertised.

As with the corresponding menu command, it might also be necessary to specify the tick mark interval used for the Y axis. Otherwise DPlot will pick an interval and change (if necessary) the specified extents to a multiple of the interval.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
arthur_etchells



Joined: 15 Jul 2005
Posts: 30

PostPosted: Mon Oct 03, 2005 8:55 am    Post subject: Reply with quote

One: it seems that the order I place the manualscale command within the command string affects the outcome. When the command [ManualScale(,0,,50)] is at the beginning, the extents are still set by the program, if it's at the end, the optional extents are used. I haven't pinpointed which command it needs to come before, though. Any ideas as to what is conflicting? I'll send the command string in a later email.

Two: I got it working in the end, but something I've noticed is that the DPlot sets extents differently if it has control of all the extents than it does if it just sets some of them. Specifically, the spacing DPlot gives the graphs that it sets all the extents for is looser, giving a border between the plot and the edge of the graph. This border seems to be absent when some extents are left optional.

Example:
I entered data manually for a graph with the following points...
(1,2)(2,1)(3,4)(4,3)(5,5)
The extents DPlot chose are as follows...
xlo ylo xhi yhi
.8 .6 5.2 5.4

When I send DPlot the command [ManualScale(,0,,6)] I would expect the x extents to remain .8 and 5.4 and the y extents to be 0 and 6.
The y extents are changed to 0 and 6, but the x extents lose their spacing and become 1 and 5.
Any ideas what's going on?
Thanks so much for all of your help and this incredible program.
Arthur
Back to top
View user's profile Send private message
DPlotAdmin
Site Admin


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

PostPosted: Mon Oct 03, 2005 10:18 am    Post subject: Reply with quote

Quote:
One: it seems that the order I place the manualscale command within the command string affects the outcome.


I think you've uncovered a bit of a problem. If you leave out an extent in the ManualScale command then the data extents are used. But... if under Options>General you have "Recalculate extents of XY plots after hiding/unhiding curves" checked, then when hiding ALL curves (as you're doing with [HideCurve(0)]), then Xmin=Xmax, which DPlot won't like for manually-entered extents. So your ManualScale settings end up being wiped out. At least that's what should happen, but it should happen just the opposite of how you've described.

Short version is I need to look into this more.

Quote:
Example:
I entered data manually for a graph with the following points...
(1,2)(2,1)(3,4)(4,3)(5,5)
The extents DPlot chose are as follows...
xlo ylo xhi yhi
.8 .6 5.2 5.4


This will be dependent on the aspect ratio of the plot, which is dependent on the size of the document window and/or whether you've used "Specify plot size". The default X extents will always be 0.8-5.2. DPlot finds a Y interval that gives roughly the same physical distance between tick marks on the Y axis as those for the X axis. So you might get 0.6-5.4 with an interval of 0.6, or you might get 1-5 with an interval of 0.5.

Off the top of my head I think I should probably make default intervals a bit more restrictive, say 1, 2, or 5 x some power of 10. I'll have to give this some thought.
_________________
Visualize Your Data
support@dplot.com
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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