Reputation: 385
I have the following Gnuplot script:
set label "Threshold" at first 1.03, first -15
set arrow from graph 0,first -13 to graph 1, first -13 nohead lt 0 lw 5
plot [1:12][] pot_t(x) t "up" w lines ls 1
with a horizontal line at -13.
If I add a second plot in the script
plot [5:20][] pot_t(x) t "up" w lines ls 1
the horizontal line arrow
and label
still there.
How could I remove the label threshold
and the dashed horizontal line?
Regards
Upvotes: 2
Views: 8732
Reputation: 2187
Labels and arrows stay in every subsequent plot until you explicitly remove them, like practically all gnuplot settings.
You can find out the identifier number of each of them with show label
/ show arrow
and remove them via unset
.
set label 5 at 1,1 "Labeltext" # Explicitly give the label an id number
plot x # Here's a label
unset label 5
plot x # And it's gone
You can keep track of your arrows and labels by giving them an id number (5
in the above example).
Upvotes: 5