mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
spaced out commands in the README
This commit is contained in:
parent
4155916053
commit
b45d476fe5
6
README
6
README
@ -6,9 +6,11 @@ plots from data coming in on STDIN or given in a filename passed on the
|
|||||||
commandline. Various data representations are supported, as is hardcopy
|
commandline. Various data representations are supported, as is hardcopy
|
||||||
output and streaming display of live data. A simple example:
|
output and streaming display of live data. A simple example:
|
||||||
|
|
||||||
|
|
||||||
seq 5 | awk '{print 2*$1, $1*$1}' |
|
seq 5 | awk '{print 2*$1, $1*$1}' |
|
||||||
feedGnuplot.pl --lines --points --legend "data 0" --title "Test plot" --y2 1
|
feedGnuplot.pl --lines --points --legend "data 0" --title "Test plot" --y2 1
|
||||||
|
|
||||||
|
|
||||||
You should see a plot with two curves (one on the y1 axis and the other on
|
You should see a plot with two curves (one on the y1 axis and the other on
|
||||||
the y2 axis), a legend and a title. The first line of the example generates
|
the y2 axis), a legend and a title. The first line of the example generates
|
||||||
some data to plot and the second reads it in from STDIN and generates the
|
some data to plot and the second reads it in from STDIN and generates the
|
||||||
@ -20,9 +22,11 @@ By default, the line number of the incoming data is used for the x-axis. To
|
|||||||
plot an x-y dataset, feed in the x values as the first element in every line
|
plot an x-y dataset, feed in the x values as the first element in every line
|
||||||
and pass in --domain. With the previous example:
|
and pass in --domain. With the previous example:
|
||||||
|
|
||||||
|
|
||||||
seq 5 | awk '{print 2*$1, $1*$1}' |
|
seq 5 | awk '{print 2*$1, $1*$1}' |
|
||||||
feedGnuplot.pl --domain --lines --points --legend "data 0" --title "Test plot" --y2 1
|
feedGnuplot.pl --domain --lines --points --legend "data 0" --title "Test plot" --y2 1
|
||||||
|
|
||||||
|
|
||||||
we get only one curve, with different x values. As many points as desired
|
we get only one curve, with different x values. As many points as desired
|
||||||
can appear on a single line, but all points on a line are associated with
|
can appear on a single line, but all points on a line are associated with
|
||||||
the X value that starts that line.
|
the X value that starts that line.
|
||||||
@ -32,9 +36,11 @@ plotted, this is undesireable. With the --dataindex option, each point in
|
|||||||
the input is preceded by an integer identifying the curve the point belongs
|
the input is preceded by an integer identifying the curve the point belongs
|
||||||
to. With the previous example:
|
to. With the previous example:
|
||||||
|
|
||||||
|
|
||||||
seq 5 | awk '{print 2*$1, $1*$1}' |
|
seq 5 | awk '{print 2*$1, $1*$1}' |
|
||||||
feedGnuplot.pl --dataindex --lines --points --legend "data 0" --title "Test plot" --y2 1
|
feedGnuplot.pl --dataindex --lines --points --legend "data 0" --title "Test plot" --y2 1
|
||||||
|
|
||||||
|
|
||||||
we get 5 different curves with one point in each. The first column, as
|
we get 5 different curves with one point in each. The first column, as
|
||||||
produced by awk, is '2,4,6,8,10'. These are interpreted as the indices of
|
produced by awk, is '2,4,6,8,10'. These are interpreted as the indices of
|
||||||
the curves to be plotted. The feedGnuplot.pl script created 11 different
|
the curves to be plotted. The feedGnuplot.pl script created 11 different
|
||||||
|
Loading…
Reference in New Issue
Block a user