Mon 30 Aug 2010 11:10:58 PM UTC, comment #7:
I've pushed a changeset to use gnuplot's pentagon for the marker, "p".
http://hg.savannah.gnu.org/hgweb/octave/rev/2f9de135e7f9
I think the preferred solution to add the ">", "<", and "h" markers for the gnuplot backend should would be to add these marker's go gnuplot (upstream).
I'll leave this open for now in case others would like to comment.
|
Mon 30 Aug 2010 01:41:03 AM UTC, comment #5:
After a bit of googling, I learned that OpenGL can only draw convex polygons. Fortunately, the vertices for these concave shapes may be ordered to that the restrictions of OpenGL will properly render their concave shape.
I've attached a modified changeset (changeset-fltk-2.patch) and pictures of the oversized markers with the reordered vertices.
(file #21343, file #21344, file #21345)
|
Sun 29 Aug 2010 09:53:43 PM UTC, comment #4:
I took a look at the GL code. My first impression was that this was low hanging fruit, so I made an attempt. I've attached a changeset and some pictures of the results.
For a reason, I don't understand the fill isn't working properly.
Also the defined geometry of the markers appear to invert vertically when drawn.
(file #21340, file #21341, file #21342)
|
Sun 29 Aug 2010 07:15:38 PM UTC, comment #3:
Turns out that gnuplot has a pentagon pointtype that can be used in place of the expected pentagram.
I've attached trivial changeset and a list of gnuplot's pointtypes.
The pentagon does not work for the x11 or aqua terminals, but does for postscript.
If there are no objections, I'll push this change.
(file #21336, file #21337)
|
Tue 27 Jul 2010 02:00:53 PM UTC, original submission:
The following code:
x = linspace(0, 2*pi, 50);
plot(x, sin(x), "p", x, cos(x), "h", x, sin(2x)+cos(3x), "<", x, x/3, ">");
pause;
should draw four lines with different markers: 5-pointed star, 6-pointed star, left triangle, and right triangle, respectively. Instead, the plot is drawn with markers of square, diamond, down triangle, and up triangle, respectively.
|