3.3.3 The linestyle Keyword

At times, the string of style keywords following the with modifier in plot commands can grow rather unwieldily long. For clarity, frequently used plot styles can be stored as “linestyles”; this is true of styles involving points as well as lines. The syntax for setting a linestyle is:

set linestyle 2 points pointtype 3

where the “2” is the identification number of the linestyle. In a subsequent plot statement, this linestyle can be recalled as follows:

plot sin(x) with linestyle 2