Sets the color for the axes line.


plotSetAxesPen(&myPlot, thickness[, clr])
  • &myPlot (struct pointer) – A plotControl structure 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.


// Declare plotControl structure
struct plotControl myPlot;

// Initialize plotControl structure
myPlot = plotGetDefaults("xy");

// Set axis to be 2 pixeles wide and black
plotSetAxesPen(&myPlot, 2, "black");

// Create data
x = seqa(0.1, 0.1, 50);
y = sin(x)~cos(x);

// Plot the data with the new line colors
plotXY(myPlot, x, y);


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 the GAUSS Graphics chapter for more information on the methods available for customizing your graphs.