This shows you the differences between two versions of the page.
cs:gnuplot [2019/02/26 14:33] |
cs:gnuplot [2020/11/26 23:18] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Gnuplot ====== | ||
+ | Usefull commands for plot charts with Gnuplot | ||
+ | |||
+ | ===== Axes ===== | ||
+ | Set label to axes | ||
+ | |||
+ | < | ||
+ | set < | ||
+ | Ex. | ||
+ | set xlabel 'x label name' | ||
+ | </ | ||
+ | |||
+ | Set tics into axes | ||
+ | < | ||
+ | set < | ||
+ | Ex. | ||
+ | set xtics 10, 0.5, 12 # 10, 10.5, 11, 11.5, 12 | ||
+ | </ | ||
+ | |||
+ | ===== Include external files ===== | ||
+ | For long //gnuplot// scripts is useful to divide the script in more than one file. To include in a //gnuplot// script external files the following command can be used: | ||
+ | <code bash> | ||
+ | load " | ||
+ | </ | ||
+ | |||
+ | ===== Simple bar chart ===== | ||
+ | < | ||
+ | set boxwidth 0.5 | ||
+ | set style fill solid | ||
+ | plot " | ||
+ | </ |