Linux command
gnuplot 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Start interactive mode
gnuplot
Run script
gnuplot [script.gp]
Quick plot
gnuplot -e "plot sin(x)"
Persist window
gnuplot -p -e "plot sin(x)"
Set terminal
gnuplot -e "set terminal png; set output 'plot.png'; plot sin(x)"
说明
gnuplot is a command-driven graphing utility for creating 2D and 3D plots of functions and data. It supports many output formats for publication-quality graphics. The tool uses its own scripting language for plot customization. It supports terminals for X11, PNG, PDF, SVG, and many others. It is widely used in scientific visualization and data analysis.
参数
- -e _COMMAND_
- Execute command.
- -p, --persist
- Keep window after script.
- -c _FILE_
- Call script with args.
- --help
- Display help information.
FAQ
What is the gnuplot command used for?
gnuplot is a command-driven graphing utility for creating 2D and 3D plots of functions and data. It supports many output formats for publication-quality graphics. The tool uses its own scripting language for plot customization. It supports terminals for X11, PNG, PDF, SVG, and many others. It is widely used in scientific visualization and data analysis.
How do I run a basic gnuplot example?
Run `gnuplot` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -e _COMMAND_ do in gnuplot?
Execute command.