8.27.22 linestyle

set linestyle <style number> <style specifier> ...

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 line style is:

set linestyle 2 points pointtype 3

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

plot sin(x) with linestyle 2