The style in which data should be plotted may be specified following the modifier with, with the following syntax:
plot sin(x) with points
The following plot styles are recognised: lines, points, linespoints, dots, boxes, wboxes, impulses, steps, histeps, fsteps, xerrorbars, yerrorbars, xyerrorbars, xerrorrange, yerrorrange, xyerrorrange,
arrows_head, arrows_nohead, arrows_twohead, csplines, acsplines.
In addition, lp and pl are recognised as abbreviations for linespoints; errorbars is recognised as an abbreviation for yerrorbars; errorrange is recognised as an abbreviation for yerrorrange; and arrows_twoway is recognised as an alternative for arrows_twohead.
As well as plot styles, the with modifier can also be followed by the following keywords:
– specifies the line type (e.g. dotted) used by the lines plot style.
– specifies the width of line, in pt, used by the lines plot style.
– specifies the size of data points, relative to the default size, used by the points plot style.
– as above, but specifies the linewidth, in pt (1 pt = 1/72 inch), used to render the crosses, circles, etc, used to mark data points.
– this can be used in conjunction with the set linestyle command to save default plot styles.
– specifies the colour used to plot the dataset, either by one of the recognised colour names or by an integer, to use one from the current palette.
– relevant to the boxes and wboxes plot styles, specifies a colour with which bar charts should be filled.
An example using several of these keywords would be:
plot sin(x) axes x2y1 with colour blue linetype 2 \ linewidth 5