Page 1 of 1

Troubles specifying extents for logx/lineary graph

Posted: Wed Aug 17, 2005 9:37 pm
by arthur_etchells
Just wanted to thank you again for the copious help and support you've already given me. Unfortunately, I still have some questions. I am feeding dplot some manualscale info for a logarithmic x/linear y graph, but dplot ignores the scaling info. I can go in after the fact and specify the extents manually, but it isn't working programatically. Any suggestions?
Thanks again,
Arthur

Posted: Wed Aug 17, 2005 10:05 pm
by DPlotAdmin
Hi Arthur,
Thanks for your comments.

I tried an example using logarithmic x, linear y just now and it worked fine. Couple of questions:
After you create your plot using [ManualScale(...)], select Options>Extents/Tick Marks/Size and see if "Specify extents" is checked. If it is not, then yes, DPlot really did ignore the command, probably indicative of an error in the command. If it is checked, how are the shown extents different than those you specified?

And please show me the exact sequence you're using in your program with the ManualScale command.

Posted: Thu Aug 18, 2005 7:40 pm
by arthur_etchells
This is the command string I am feeding to Dplot...
D.Version = DPLOT_DDE_VERSION
D.DataFormat = DATA_XYXY
D.MaxCurves = NumCurves
D.MaxPoints = MaxRows - HasHeading
D.NumCurves = NumCurves
D.ScaleCode = SCALE_LOGX_LINEARY
D.Title1 = "Geometric Distortion"
D.Title2 = lensname
D.XAxis = "Focal Length"
D.YAxis = "Distortion as percent of frame width"
[Caption("Geometric Distortion")][ManualScale(0,-2,300,2)][NumberFormat(0,0)][NumberFormat(1,0)][NumTicks(1,4,4)][Color(1,255,75,25)][Color(2,75,125,205)][SetPluginImageDims(500, 425, 8)][TextFont(1,8,400,0,0,0,0,"Arial")][TextFont(2,10,700,0,0,0,0,"Arial")][TextFont(3,9,400,0,0,0,0,"Arial")][TextFont(4,8,700,0,0,0,0,"Arial")][TextFont(5,8,700,0,0,0,0,"Arial")][TextFont(6,8,400,0,0,0,0,"Arial")][TextFont(7,1,400,0,0,0,0,"Arial")][TextFont(8,1,400,0,0,0,0,"Arial")]

After passing this command string to Dplot, the specify extents checkbox is still not checked. When I check it, I can modify the extents and the changes I enter are reflected in the graph. However, the numticks command only seems to have an effect on the y axis tick marks. Manually modification of the x-axis ticks doesn't seem to have an effect, either. Is there some kind of option I inadvertantly checked? Any ideas?
Thanks again,
Arthur

Posted: Thu Aug 18, 2005 8:05 pm
by arthur_etchells
Also, the axes at zero option doesn't seem to work. Are these related?

Posted: Thu Aug 18, 2005 9:53 pm
by DPlotAdmin
Also, the axes at zero option doesn't seem to work. Are these related?
Yes, but probably not in the way you mean. With the ManualScale command you're trying to set the low X extent to 0 on a logarithmic scale. This is physically impossible. The code that parses command strings checks against either extent being < 0 and simply ignores the command if that's the case.

"Axes at zero" should work for the Y axis in this case but doesn't - it's ignored for both X and Y if either axis uses logarithmic scaling. I'll correct that next time out.

Posted: Fri Aug 19, 2005 2:33 pm
by arthur_etchells
Thanks!

Posted: Fri Aug 19, 2005 8:41 pm
by arthur_etchells
Is it possible to specify the y extents, but allow Dplot to scale the x extents?

Posted: Fri Aug 19, 2005 9:09 pm
by DPlotAdmin
Not in the current version. In the next release many parameters will be optional, including those used in ManualScale. For example

[ManualScale(,ylo,,yhi)]

will set the Y extents and use the actual data extents (or previously set X extents) for X.

Posted: Fri Aug 19, 2005 9:23 pm
by arthur_etchells
Any idea when that will be released? Just want to know if I should kill myself writing scaling into my code, or just wait a couple days.
Thanks again,
Arthur

Posted: Fri Aug 19, 2005 9:26 pm
by DPlotAdmin
Any idea when that will be released? Just want to know if I should kill myself writing scaling into my code, or just wait a couple days.
More than a couple of days. Most likely around the end of August.

Posted: Fri Aug 19, 2005 9:46 pm
by arthur_etchells
Ok, sounds good.

Posted: Mon Aug 29, 2005 8:14 pm
by arthur_etchells
I don't want to bother you with this, but are you still thinking this will get worked in the end of this month?
Thanks
Arthur

Posted: Wed Aug 31, 2005 5:01 pm
by DPlotAdmin
Arthur,
Sorry, but my schedule has been pushed back a bit by events. I'll get the new release out as soon as possible.

Posted: Thu Sep 22, 2005 2:56 pm
by arthur_etchells
Hey, I noticed the updated revision. In order to access the new optional extents functionality from excel, will I have to install a new dplotlib.xla file?
Thanks,
Arthur

Posted: Thu Sep 22, 2005 3:45 pm
by DPlotAdmin
No, that's handled within the updated dplot.exe (or dplotjr.exe), not the Add-In or DPLOTLIB.DLL.