plotSetZShow#

Purpose#

Hides or enables the display of the z-axis.

Format#

plotSetZShow(&myPlot, is_on)#
Parameters:
  • &myPlot (struct pointer) – A plotControl structure pointer.

  • is_on (Scalar) – A 0 to hide the z-axis, or a 1 to show it.

Examples#

// Declare plotControl structure
// and fill with default settings
struct plotControl myPlot;
myPlot = plotGetDefaults("surface");

// Turn off the z-axis
plotSetZShow(&myPlot, 0);

// Create data
y = seqa(0.1, 0.1, 50);
x = y';
z = sin(x)+sin(y);

// Plot the data
plotSurface(myPlot, x, y, z);

Remarks#

Note

This function sets an attribute in a plotControl structure. It does not affect an existing graph, or a new graph drawn using the default settings that are accessible from the Tools > Preferences > Graphics menu.

See also

Functions plotSetXRange(), plotSetXShow()