Gnuplot Skalafarbe

vendredi 19 août 2016

Hallo,

wie kann ich die Farbe der y und y2 Skala ändern?

In meinem Plot ist sie violett und grün.

Ich hätte sie gerne entweder alle schwarz, oder in der Farbe des jeweiligen Graphen.

Code:

set title "19.08.2016"
set yrange [0:16]
set y2range [0:80]
set xlabel "Uhrzeit"
set ylabel "Transferraten [Mbit\/s]" tc rgb "red"
set y2label "Ping [ms]" tc rgb "grey"
set datafile separator ","
set timefmt "%Y-%m-%d\T%H:%M:%S"
set xdata time
set xrange ["2016-08-19\T08:00:00":"2016-08-19\T22:00:00"]
set ytics 2 nomirror tc  lt 1
set y2tics 20 nomirror tc lt 2
set term pdf  size  20,10 enhanced font 'Verdana,23'
set output 'DSL.pdf'
set grid lt 0 lw 3 lc rgb "#bbbbbb"

set style line 1 lt 1  lc rgb "red" lw 2
set style line 2 lt 1  lc rgb "blue" lw 2
set style line 3 lt 1  lc rgb "grey" lw 2

plot  "data.csv" using 1:4 with linespoints ls 2 axis x1y1 title "Up", "data.csv" using 1:3  with linespoints ls 1 axis x1y1  title "Down", "data.csv"  using 1:2 with linespoints ls 3  axis x1y2 title "Ping"

Danke

Midyr


0 commentaires:

Enregistrer un commentaire

 

Lorem

Ipsum

Dolor