Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
software:gnuplot [2016/02/26 13:34]
cyril [Plot data from a file]
software:gnuplot [2024/04/19 09:52]
cyril columnheader
Line 59: Line 59:
 set x2label "" set x2label ""
 set y2label "" set y2label ""
 +</code>
 +
 +  * Log scale.<code gnuplot>
 +set logscale x 2
 +set logscale y 10
 </code> </code>
  
Line 163: Line 168:
 plot "data1.dat" using 4:5 lt rgb "red" plot "data1.dat" using 4:5 lt rgb "red"
 plot "data1.dat" using 4:5 lt rgb "#FF0000" plot "data1.dat" using 4:5 lt rgb "#FF0000"
 +</code>
 +
 +  * **palette** Colors as value.<code gnuplot>
 +set palette defined (0 "black", 1 "red")
 +plot "data1.dat" using 1:2:0 w p palette
 </code> </code>
  
Line 227: Line 237:
 plot for [file in "run1.dat run2.dat run3.dat"] file using 1:2 plot for [file in "run1.dat run2.dat run3.dat"] file using 1:2
 </code><code gnuplot> </code><code gnuplot>
-plot for [i=1:3] run.dat using i+plot for [i=1:3] run.dat using i t sprintf("curve %s", columnheader(i))
 </code><code gnuplot> </code><code gnuplot>
 file(n) = sprintf("run_%d.dat",n) file(n) = sprintf("run_%d.dat",n)
software/gnuplot.txt ยท Last modified: 2024/04/19 09:54 by cyril
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0