Reputation: 21
I am trying to change the line style of my gnuplot graph (there is only one line, I have only a simple plot of y versus x) However, when I type: set style line 1 linecolor rgb '#0060ad' ... (or linewidth or whatever argument) (& replot) nothing happens... it seems that it doesn't recognise the plot as "line 1".. I also tried to change the line index to a different number or its name...
Could anybody please help what to put "set style ..." argument?
Thank you very much!
Upvotes: 2
Views: 2493
Reputation: 48390
Gnuplot has linestyle
and linetype
:
set linetype 1 linecolor "yellow"
plot x
or
set style line 1 linecolor "magenta"
plot x linestyle 1
Using set linetype
is the recommended way, line style is deprecated.
Note, that resetting the line type must be done with reset session
(gnuplot version 5), reset
alone doesn't work.
Upvotes: 4