plotSetZPen¶
Purpose¶
Sets the thickness, color, and style for the Z-Axis line.
Format¶
-
plotSetZPen(&myPlot, thickness[, clr[, style]])¶ Parameters: - &myPlot (struct pointer) – A
plotControlstructure pointer. - thickness (Scalar) – the thickness of the axis line in pixels.
- clr (string) – Optional argument, name or rgb value of the new color for the axes.
- style (Scalar) –
the style of the pen. Options include:
1 solidSolid line. 2 dashDash line. 3 dotDot line. 4 dashdotDash-Dot line. 5 dashdotdotDash-Dot-Dot line.
- &myPlot (struct pointer) – A
Examples¶
// Declare plotControl structure
struct plotControl myPlot;
// Initialize plotControl structure
myPlot = plotGetDefaults("xy");
// Set axis to be 3 pixels wide and black
plotSetZPen(&myPlot, 3, "black");
// 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
menu.
See also
Functions plotGetDefaults(), plotSetLineStyle(), plotSetAxesPen(), plotSetXPen(), plotSetXPen()