GBPLOT(1)

πŸ“¦
version 6.3 Β· 2 versions
  • 6.3 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 6.0 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

🌸 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 spelled ouptut in 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 are x, y and xy
  • -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 Β© 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 🫢✨