octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #53023] Marker symbols not fully drawn for som


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #53023] Marker symbols not fully drawn for some output formats
Date: Wed, 31 Jan 2018 06:19:04 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #16, bug #53023 (project octave):

@Rik:
OpenGL linestrip  primitives don't have any feature like linecap or linejoin
(see bug #39643). So this is an undefined behavior and the way line junctions
and endings are rendered may depend on the OpenGL rendering library in use. I
don't think we should care too much about the case of markers that have
contour lines wider than the diameter of the marker itself ... this is a
pathological case where the workaround is clearly to change the size of the
marker so that it fits (looks good) with its associated line. 
The proposition of using round linecap and linejoin may be useful anyway:


plot (1:10, "-s", "markersize", 10)
print toto.svg


If you inspect the svg output in inkscape you'll see that not all corners of
the marker join gracefully.
I attached a first patch for rounding markers, that will only work if you have
gl2ps>=1.4.

@Dan: I think the closepath route is the way to go in the future but by
patching gl2ps to offer some functions like "gl2psBegin(End)ClosedPath" so
that gl2ps can be told when to interpret a line series as a closed contour.
This is the only reliable way to handle all output formats.

(file #43138)
    _______________________________________________________

Additional Item Attachment:

File name: roundmarkers.patch             Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?53023>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]