3D surface plots in GAUSS 19 : any suggestions for plotSetZRange?

I want to compare two similar surface plots and therefore need to have a similar minimum and maximum for the Z-axis. plotSetZRange is not available! Other suggestions?

1 Answer



0



You can directly set the zAxis.axisRange member of the plotControl structure. Here is a simple example.

x = seqa(1,1,5);
y = seqa(1,1,6);

z = { 3 3 2 4 5 4,
      3 3 2 3 4 5,
      4 3 2 2 4 4,
      4 4 3 3 5 6,
      5 6 4 4 6 7 };

Sigma = 1;
GridFactor = 3;

{ xx,yy,zz } = spline(x,y,z,Sigma,GridFactor);

struct plotControl myplot;
myplot = plotGetDefaults("surface");

// Set the Z-axis range to be from -2 to +15
myPlot.zAxis.axisRange = -2|15;

plotsurface(myPlot, xx',yy,zz');

aptech

1,323

Your Answer


You must login to post answers.

Have a Specific Question?

Get a real answer from a real person

Need Support?

Get help from our friendly experts.

Try GAUSS for 30 days for FREE

See what GAUSS can do for your data

© Aptech Systems, Inc. All rights reserved.

Privacy Policy | Sitemap