Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

set and unset label for multiplot?

1,759 views
Skip to first unread message

mlt

unread,
Aug 30, 2008, 8:06:46 AM8/30/08
to
I have a multiplot containing two plots:

# Label the controlpoints
y_offset = 0.5
set label "X_0" at 8,4+y_offset
set label "X_1" at 12,6+y_offset
set label "X_2" at 11,11+y_offset


set multiplot layout 1, 2
set title "pic" font "Helvetica,20"
plot "data1.dat" using 1:2 w points pointtype 6 linecolor rgb "blue", \
"data2.dat" using 1:2 ls 2

set label "X_3" at 5,12+y_offset
set label "X_4" at 2,9+y_offset
set label "X_5" at 3,6+y_offset

set title "pic2" font "Helvetica,20"
plot "data3" using 2:3 w points pointtype 6 linecolor rgb "blue", \
"data4.dat" using 1:2 ls 2

unset multiplot


I would like to make the label X_3-X_5 to only appear on the second plot,
but all labels appear. Is there some way around this?


Hans-Bernhard Bröker

unread,
Aug 31, 2008, 1:45:25 PM8/31/08
to
mlt wrote:

> I would like to make the label X_3-X_5 to only appear on the second plot,
> but all labels appear. Is there some way around this?

I'm surprised you ask --- you wrote the answer yourself, right there in
the subject line. Or what did you think "unset label" was for?

Darby

unread,
Sep 1, 2008, 3:40:23 PM9/1/08
to

I think another way to go about this would be:

set multiplot layout 1, 2

set label 1 "X_0" at 8,4+y_offset
set label 2 "X_1" at 12,6+y_offset
set label 3 "X_2" at 11,11+y_offset

set title "pic" font "Helvetica,20"
plot "data1.dat" using 1:2 w points pointtype 6 linecolor rgb "blue",
\
"data2.dat" using 1:2 ls 2

set label 1 "X_3" at 5,12+y_offset
set label 2 "X_4" at 2,9+y_offset
set label 3 "X_5" at 3,6+y_offset

0 new messages