February 2012
Beginner to intermediate
220 pages
5h 8m
English
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 impulses style:
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 lw 2.
A "stem plot" is sometimes used in electrical engineering. It is similar to the impulse ...
Read now
Unlock full access