GBPLOT(1)
πΈ NAME πΈ
gbplot β the gnuplot command line interface. yes bestie, it's section 1, User Commands, and she's serving command-line plotting realness π
β¨ SYNOPSIS β¨
gbplot [options] [command] [specstring] < datafile
π¦ DESCRIPTION π¦
okay so the whole vibe here is: this command produces simple plots from the command line using the gnuplot program. command is one of the gnuplot commands β either plot or splot β and specstring is a list of gnuplot specifications. to escape shell interpretation, put specstring between double quotes. no cap, that part matters.
you can also specify the type of terminal and the output file name as command line options. and you can start an interactive session too, which is genuinely useful when you wanna adjust plot parameters by hand. it's giving β¨controlβ¨.
the program can be used in a shell pipe, like this:
cat datafile | gbplot [options] [command] [specstring]
π OPTIONS π
-hβ print this help-iβ start interactive session after the plot-Tβ set a different terminal-oβ set an output file (yes it's spelledouptutin the source, we don't talk about it π)-tβ assign a title to the plot-pβ prepend expression to plot command-lβ set log; possible values arex,yandxy-Cβ command to be run before the plot-vβ verbose output: print commands to standard error--helpβ same as-h--versionβ print the program version
π EXAMPLES π
two plots: one using line and one using points. iconic.
echo "1\n2\n3" | gbplot plot "u 0:1 w l title 'line', '' u 0:1 w p title 'point'"
save the plot in PDF format in a file named test.pdf
echo "1\n2\n3" | gbplot -T pdf -o test.pdf plot "u 0:1 w l title 'line'"
set log on the y axis
echo "1\n2\n3" | gbplot -l y plot "u 0:1 w l title 'line', '' u 0:1 w p title 'point'"
set log on the x axis and a grid
echo "1\n2\n3" | gbplot -l x -C "set grid" plot "u 0:1 w l title 'line', '' u 0:1 w p title 'point'"
set a grid and the position of the legend
echo "1\n2\n3" | gbplot -C "set grid" -C "set key bottom right" plot "u 0:1 w l title 'line', '' u 0:1 w p title 'point'"
compute the value of the gamma function on a set of points; gawk is used to filer the relevant numbers
echo "1\n2\n3" | gbplot -C "set table" plot 'u (gamma($1))' | gawk '/ i/{print $2}'
π AUTHOR π
Written by Giulio Bottazzi
π REPORTING BUGS π
Report bugs to <gbutils@googlegroups.com>
Package home page <http://cafim.sssup.it/~giulio/software/gbutils/index.html>
π COPYRIGHT π
Copyright Β© 2009-2014 Giulio Bottazzi
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License (version 2) as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
bestie this is the legal bit so pls actually read it: no warranty, fr fr. if it breaks, it breaks π
and that's the whole page, periodt. this was gbplot ver. 5.6, dated March 2019, and it lives in section 1 of the manual π thanks for coming to my ted talk, go make some plots, you got this π«Άβ¨
π¦ where this page comes from
- debian bookworm: gbutils 6.3-1 Β· GPL-2.0-or-later
- debian trixie: gbutils 6.3-1+b1 Β· GPL-2.0-or-later
- ubuntu noble: gbutils 6.3-1 Β· GPL-2.0-or-later
- ubuntu questing: gbutils 6.3-1build1
- ubuntu resolute: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- ubuntu stonking: gbutils 6.3-1build2 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms