HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

gnuplot — A graph plotter that outputs in several formats. More information: <https://manned.org/gnuplot>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
plottergraphcommandgnuplotcliseveralthatoutputs

Problem

How to use the gnuplot command: A graph plotter that outputs in several formats. More information: <https://manned.org/gnuplot>.

Solution

gnuplot — A graph plotter that outputs in several formats. More information: <https://manned.org/gnuplot>.

Start the interactive graph plotting shell:
gnuplot


Plot the graph for the specified graph definition file:
gnuplot {{path/to/definition.plt}}


Set the output format by executing a command before loading the definition file:
gnuplot -e "{{set output "path/to/file.png" size 1024,768}}" {{path/to/definition.plt}}


Persist the graph plot preview window after gnuplot exits:
gnuplot {{[-p|--persist]}} {{path/to/definition.plt}}

Code Snippets

Start the interactive graph plotting shell

gnuplot

Plot the graph for the specified graph definition file

gnuplot {{path/to/definition.plt}}

Set the output format by executing a command before loading the definition file

gnuplot -e "{{set output "path/to/file.png" size 1024,768}}" {{path/to/definition.plt}}

Persist the graph plot preview window after gnuplot exits

gnuplot {{[-p|--persist]}} {{path/to/definition.plt}}

Context

tldr-pages: common/gnuplot

Revisions (0)

No revisions yet.