From: Dave D. <dde...@es...> - 2004-08-12 16:34:56
|
Ethan Merritt <merritt@u.washington.edu> writes: > On Thursday 12 August 2004 03:44 am, Dave Denholm wrote: >> if (type != LineSolid || width != 0) { /* select solid line */ >> XSetLineAttributes(dpy, gc, 0, LineSolid, CapButt, JoinBevel); >> } >> >> - try setting the linewidth param to 1 in the XSetLineAttributes call. > > Thanks for the tip. The change I actually made was to unconditionally call > > /* Force line type to solid, with round ends */ > XSetLineAttributes(dpy, *current_gc, plot->lwidth, LineSolid, CapRound, JoinRound); > > I was under the impression that passing plot->lwidth was essentially a no-op, > since that should have been the current state anyhow. I made it unconditional > in order to force the CapRound attribute. But if I understand your summary of > X oddities, it may actually be the explicit linewidth rather than the CapRound > that causes the observed problem to go away. > I don't think plot->lwidth is appropriate for drawing symbols - if you've got a very wide (gnuplot) line width, the outline of the points will be drawn with a wide line. But maybe that is what you want. > Daniel, do you care enough to investigate further? > I'm happy just to leave it as it is, since it seems to work. > > -- > Ethan A Merritt merritt@u.washington.edu > Biomolecular Structure Center > Mailstop 357742 > University of Washington, Seattle, WA 98195 -- Dave Denholm <dde...@es...> http://www.esmertec.com |