Setting scaling factors programatically

Beta releases, announcements and anything else that doesn't fit below. Please read the <B>Welcome</B> topic.
Post Reply
arthur_etchells
Posts: 30
Joined: Fri Jul 15, 2005 9:18 am

Setting scaling factors programatically

Post by arthur_etchells »

Just wanted to say this is an awesome program. I'm just having a hard time figuring out how to set scaling factors programatically. The xy numbers for a 3d contour plot have a 3:2 ratio (or 1.5:1). When I graph these numbers it gives the xy plane a square appearance. I would rather preserve the aspect ratio specified in the points.

I get exactly the result I want by doing the following...
-Leaving the "Always auto-adjust scale factors on 3D plots" option in the General options pane enabled
-Specifying the programatic contour plot options normally (ie without any scaling factor specifications).
-Manually changing the xy scaling ratio in contour options to from 1:1.5 to 1:1, while leaving the z scaling ratio unchanged

Basically I need to figure out how to do the last item programatically.

Thanks for any and all help,
Arthur

PS: Is there any way to tell DPlot to make a solid plane where the graph clips, instead of leaving the clipped areas transparent?
arthur_etchells
Posts: 30
Joined: Fri Jul 15, 2005 9:18 am

Post by arthur_etchells »

I've tried the following command:
[ContourScales(Xscale, Yscale, Zscale)]
But setting this to [ContourScales(1, 1, 1/2)]
Leaves the scale factors in contour options unchanged. Are there other commands that I'm missing?
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Arthur,
Thanks very much for your comments.

This:
[ContourScales(Xscale, Yscale, Zscale)]
But setting this to [ContourScales(1, 1, 1/2)]
is what you want, but the 1/2 for Z won't be interpreted correctly. All of those entries must be simply numbers - no fractions, equations, dates, times, etc. Perhaps someday I'll add the ability to express all values in more general ways, but in the meantime, use

[ContourScales(1,1,0.5)]
Visualize Your Data
support@dplot.com
arthur_etchells
Posts: 30
Joined: Fri Jul 15, 2005 9:18 am

Post by arthur_etchells »

Ah, so it was skipping the commands with the incorrect syntax. Gotcha.
Just a couple other questions
Is there any way to change DPlot's behaviour with clipped z values?
And, is there any way to allow dplot to scale the z values automatically (while manually specifying the x & y scaling factors?

Not really a big deal about the 1/2 vs 0.5, thanks a lot for of your help.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Is there any way to change DPlot's behaviour with clipped z values?
Probably, but... what do you have in mind?
And, is there any way to allow dplot to scale the z values automatically (while manually specifying the x & y scaling factors?
Unfortunately no. I need to think on this one a bit... perhaps something like
[ManualScale(xlo,ylo,xhi,yhi,,)]

would force the X and Y extents and use the actual extents for Z. Likewise
[ManualScale(xlo,ylo,xhi,yhi,,100)]
would use 100 for the upper limit and the actual minimum for the lower limit.
Visualize Your Data
support@dplot.com
arthur_etchells
Posts: 30
Joined: Fri Jul 15, 2005 9:18 am

Post by arthur_etchells »

In regards to the z value clipping, I was thinking of something like displaying the clipped portion of the graph as a flat surface, perhaps as a different color. Not sure if this is possible, just a thought. Thanks very much for your help.
Arthur
Lolo15
Posts: 3
Joined: Wed Sep 23, 2015 10:07 am
Location: France

Post by Lolo15 »

I have a question about the Z Scaling on a 3D curve :
How this Z scale value is calculated ?

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

Post by DPlotAdmin »

By default it sets the scale factors such that the physical distance along the X and Y axes is the same, and the distance along Z is approximately 1/2 of that. This generally fills the display nicely.
Visualize Your Data
support@dplot.com
Post Reply