gnuplot stdin, how to plot two lines?

The “-” is used to specify that the data follows the plot command. So if you use it, you’ll need to do something like: echo “set datafile separator \”,\”; plot ‘-‘ using 1:2 with lines, ” using 1:3 with lines;” | cat – datafile.dat | gnuplot -p (Quoting above probably needs to be escaped). What’re … Read more

gnuplot – adjust size of key/legend

To adjust the length of the samples: set key samplen X (default is 4) To adjust the vertical spacing of the samples: set key spacing X (default is 1.25) and (for completeness), to adjust the fontsize: set key font “<face>,<size>” (default depends on the terminal) And of course, all these can be combined into one … Read more

gnuplot – removing line title

To accomplish this you should use the notitle tag. plot “delay_try1.dat” using 1:2 title ‘With CloneScale’ with lines, “normal_2.dat” using 1:2 title “Without CloneScale” with lines lc rgb “black”, “normal2.dat” using 1:2 with lines lc rgb “black” notitle or a more general example; plot ‘File.dat’ using 1:2 notitle an alternative that is equivalent to notitle … Read more

pipe plot data to gnuplot script

If you are on a Unix system (i.e. not Windows) you can use ‘<cat’ instead of ‘-‘ to read from stdin: plot ‘<cat’ using … Then you can do cat data.txt | gnuplot script.gp. However, in the specific case you mention in your question, with the plot in the for loop, you read the input … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)