User Tools

Site Tools


cs:gnuplot
Return to Home page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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
 +
 +<code>
 +set <xlabel|ylabel> '<label_text>'
 +Ex.
 +set xlabel 'x label name'
 +</code>
 +
 +Set tics into axes
 +<code>
 +set <xtics|ytics> <start> <incr> {<end>}
 +Ex.
 +set xtics 10, 0.5, 12      # 10, 10.5, 11, 11.5, 12
 +</code>
 +
 +===== 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 "filename"
 +</code>
 +
 +===== Simple bar chart =====
 +<code>
 +set boxwidth 0.5
 +set style fill solid
 +plot "data.dat" using 1:2 with boxes
 +</code>

If you found any error, or if you want to partecipate to the editing of this wiki, please contact: admin [at] skenz.it

You can reuse, distribute or modify the content of this page, but you must cite in any document (or webpage) this url: https://www.skenz.it/cs/gnuplot?rev=1551188038&do=diff