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

key box too large using subscripts in postscript enhanced mode

324 views
Skip to first unread message

Dipl.-Ing. A.Manthey

unread,
Feb 12, 1999, 3:00:00 AM2/12/99
to
Hi!

When I am using "set term post enhanced" and name a plot like:

"x_{/Symbol s}"

then the box around the key becomes too large. Obviously the length
of the box is computed from the length of the string which leeds to
a length of 13 characters (!) instead of something around
1.5 characters.

I am using:
G N U P L O T
Linux version 3.5 (pre 3.6)
patchlevel beta 347
last modified Mon Jun 22 13:22:33 BST 1998


Has anybody managed to get around this bug?

Arne
--
''~``
( o o )
+---------------------------.oooO--(_)--Oooo.---------------------------+
+-----Dipl.-Ing.-Arne-Manthey--------------Richard-Willstaetter-Allee-2-+
+-Inst.f.Technische-Thermodynamik--------------D-76128-Karlsruhe--------+
+-------und-Kaeltetechnik-----.oooO--------fon:-+49-(0)721/608-2323-----+
+-----Universitaet-Karlsruhe--(""")--Oooo.-fax:-+49-(0)721/607102-------+
+------------------------------\"(---(""")------------------------------+
ICQ: 13782637 \_) )"/
(_/

crawford richard

unread,
Feb 12, 1999, 3:00:00 AM2/12/99
to
On 12 Feb 1999 Arne Manthey <ar...@ttk36.ciw.uni-karlsruhe.de> wrote:

> When I am using "set term post enhanced" and name a plot like:
>
> "x_{/Symbol s}"
>
> then the box around the key becomes too large. Obviously the length
> of the box is computed from the length of the string which leeds to
> a length of 13 characters (!) instead of something around
> 1.5 characters.
>
> I am using:
> G N U P L O T
> Linux version 3.5 (pre 3.6)
> patchlevel beta 347
> last modified Mon Jun 22 13:22:33 BST 1998
>
>
> Has anybody managed to get around this bug?

Yes. There's an option called "width" on the "set key" command, added
for precisely this reason. I think it was included bybeta 347 -- if not,
you'll need to get the official release of 3.7.

"help set key" says, in part:

Syntax:
set key { left | right | top | bottom | outside | below
| <position>}
{Left | Right} {{no}reverse}
{samplen <sample_length>} {spacing <vertical_spacing>}
{width <width_increment>}
{title "<text>"}
{{no}box { {linestyle | ls <line_style>}
| {linetype | lt <line_type>}
{linewidth | lw <line_width>}}}
[snip]
The <width_increment> is a number of character widths to be added to or
subtracted from the length of the string. This is useful only when you are
putting a box around the key and you are using control characters in the text.
`gnuplot` simply counts the number of characters in the string when computing
the box width; this allows you to correct it.


Dick Crawford, aka rccra...@lanl.gov

0 new messages