Impulse or stick plots are another way to represent discrete points. If the line thickness is made large, the impulse plot can be made to look like a bar chart.
The following script illustrates the use of the
set samples 30 plot [0:2*pi] sin(x) with impulses lw 2
The first command set the number of points used to sample or plot the function. The plot command tells gnuplot to use the impulse style, which draws a line from the x-axis to each y value; the thickness of the line is given by
A "stem plot" is sometimes used in electrical engineering. It is similar to the ...