|
From: Petr M. <mi...@ph...> - 2007-12-08 08:47:00
|
> > It seems to me that X11 is having thick linewidth 1 for the border:
> > set border 4095 lw 0; splot x
> > set term x11 2
> > set border 4095 lw 1; splot x
> > For other terminals (ps, png, windows), the border thicknesses 0 and 1 are
> > both thin.
> >
> > Try
> > plot sin(x) w l lt 0 lw 0, sin(x)+0.1 w l lt -1 lw 1
> > on different terminals. It seems that only the X11 produces a thick line for
> > linetype -1. Is there a reason for this?
>
> The default has been that way since at least version 3.7
> The relevant X resource is:
>
> gnuplot*borderWidth: 2
Looking to the source code ([bB]order[wW]idth] appears in gplt_x11.c,
x11.trm and be.trm), I wonder how this option is implemented... I don't see
that it sets any global variable in the gnuplot core. Further it seems that
this is actually a multiplicate constant, not a line width in pixels as
"help x11 line" describes. Is this right?
Additionally, this indicates:
src/gplt_x11.c: {"-borderwidth", ".borderwidth", XrmoptionSepArg,
(XPointer) NULL},
src/gplt_x11.c: {"-bw", ".borderwidth", XrmoptionSepArg, (XPointer)
NULL},
that
gnuplot -bw 5
would set the default border to the number indicated, but it does nothing.
Further, there are
{ "-iconic", hasNoArg}, { "-rv", hasNoArg},
{ "-selectionTimeout", hasArg},
{ "-name", hasArg},
and other potential command line options which are not documented
in "help x11 line".
---
PM
|