Discussion:
gnuplot 4.0 labels with boxes?
(too old to reply)
Egan Ford
2006-11-03 22:57:58 UTC
Permalink
Is it possible to put a box around a label? A solid box?

gnuplot 4.0.

Thanks.
Ethan Merritt
2006-11-04 01:38:30 UTC
Permalink
Post by Egan Ford
Is it possible to put a box around a label? A solid box?
gnuplot 4.0.
Not easily.
In 4.2, however, see

http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
--
Ethan A Merritt
Egan Ford
2006-11-04 17:48:21 UTC
Permalink
Post by Ethan Merritt
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
Thanks I will give it a try. What to you recommend for a borderless
box? I just want the fill.
Egan Ford
2006-11-04 17:50:37 UTC
Permalink
Post by Egan Ford
Post by Ethan Merritt
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
Thanks I will give it a try. What to you recommend for a borderless
box? I just want the fill.
Nevermind.
Egan Ford
2006-11-05 16:46:13 UTC
Permalink
Post by Ethan Merritt
Post by Egan Ford
Is it possible to put a box around a label? A solid box?
gnuplot 4.0.
Not easily.
In 4.2, however, see
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
Could we also get left and right justified options? at = centered
with rect, and at = left with label.

Thanks.
Ethan Merritt
2006-11-05 18:15:38 UTC
Permalink
Post by Egan Ford
Post by Ethan Merritt
Post by Egan Ford
Is it possible to put a box around a label? A solid box?
In 4.2, however, see
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
Could we also get left and right justified options? at = centered
with rect, and at = left with label.
Not sure exactly what you mean by that. The "set obj <tag> rectangle"
command in 4.2 accepts either
center <center> size <width> <height>
or
from <left-lower-position> to <right-upper-position>

The former should match placement of centered label text, and
the latter should match placement of left- or right- justified label text.

Is that what you were asking?
--
Ethan A Merritt
Egan Ford
2006-11-05 23:11:17 UTC
Permalink
Post by Ethan Merritt
Post by Egan Ford
Post by Ethan Merritt
Post by Egan Ford
Is it possible to put a box around a label? A solid box?
In 4.2, however, see
http://gnuplot.sourceforge.net/demo_4.2/rectangle.html
Could we also get left and right justified options? at = centered
with rect, and at = left with label.
Not sure exactly what you mean by that. The "set obj <tag> rectangle"
command in 4.2 accepts either
center <center> size <width> <height>
or
from <left-lower-position> to <right-upper-position>
The former should match placement of centered label text, and
the latter should match placement of left- or right- justified label text.
Is that what you were asking?
I guess my problem with from/to is getting the size of the label. I
have been unable to use size char with from/to.
Ethan Merritt
2006-11-06 01:22:21 UTC
Permalink
Post by Egan Ford
Post by Ethan Merritt
Post by Egan Ford
Could we also get left and right justified options? at = centered
with rect, and at = left with label.
Not sure exactly what you mean by that. The "set obj <tag> rectangle"
command in 4.2 accepts either
center <center> size <width> <height>
or
from <left-lower-position> to <right-upper-position>
The former should match placement of centered label text, and
the latter should match placement of left- or right- justified label text.
Is that what you were asking?
I guess my problem with from/to is getting the size of the label. I
have been unable to use size char with from/to.
Ah, I see. You want to use the form

from <left-lower-corner> rto char strlen(label), char 1

but it doesn't allow you to mix the two forms of coordinates.
Seems like a reasonable feature request.
--
Ethan A Merritt
Loading...