plotSetLegendBorder

Purpose

Controls the color and thickness of the legend border.

Format

plotSetLegendBorder(&myPlot, clr[, thickness])
Parameters:
  • &myPlot (struct pointer) – A plotControl structure pointer.

  • clr (string) – name or rgb value of the new color.

  • thickness (scalar) – Optional input, the thickness of the legend border in pixels.

Examples

// Create the sequence 0.25, 0.5, 0.75...3
x = seqa(0.25, 0.25, 12);
y = sin(x);

// Declare plotControl structure
// and fill with default settings for XY plots
struct plotControl myPlot;
myPlot = plotGetDefaults("xy");

plotSetLegend(&myPlot, "sin(x)", 1|0.25);

// Set the legend border to light gray
// and 2 pixels thick
plotSetLegendBorder(&myPlot, "light gray", 2);

plotXY(myPlot, x, y);
_images/pslb1.png

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.