Tue 20 Oct 2015 04:49:27 PM UTC, comment #12:
gl2ps 1.3.9 has been released and fixes this bug.
Closing report.
|
Sat 17 Oct 2015 05:17:38 PM UTC, comment #11:
No schedule but there will probably be a release soon.
|
Thu 03 Sep 2015 08:48:01 PM UTC, comment #10:
@Rik: I posted your question on gl2ps mailing list.
|
Thu 03 Sep 2015 06:15:23 PM UTC, comment #9:
Great, it's an upstream bug and not Octave. Is there any schedule for the next gl2ps release? Do we want to document somewhere that Octave works best with version gl2ps-XX.YY?
|
Thu 03 Sep 2015 05:57:27 PM UTC, comment #8:
I attached the eps/pdf files I obtain from comment #6 and comment #7 examples, when using the current dev version of gl2ps.
Both are correct so it is probably also related to the issue with polygon_offset in the current stable gl2ps.
(file #34806, file #34807)
|
Wed 02 Sep 2015 03:01:23 PM UTC, comment #7:
Something very screwy is going on with gl2ps.
Try this example
In this case, neither the mesh plot nor the 3-D point are at the Z=0 plane. And the two objects don't overlap in any way, and yet you can only see a vague tracery of the mesh grid.
It is possible to get the right plot by reversing the object stack in Octave so that the mesh is plotted "on top" of the line object. This shouldn't be necessary, because they aren't actually on top of each other, but it is another workaround. Maybe there is problem with the sorting options that Octave is passing to gl2ps in this case, or there is an error in the sorting algorithm within gl2ps.
(file #34794, file #34795)
|
Wed 02 Sep 2015 09:53:35 AM UTC, comment #6:
Hi,
just to say that the workaround still leaves some problems with 3d plots:
The surface is white.
|
Sat 21 Mar 2015 12:15:20 AM UTC, comment #5:
I was just writing something similar :-). I provided a patch that is now in gl2ps dev tree and that fixes the issue here.
Until the next release of gl2ps, we have at least a workaround: "set (gca, "color", "none")".
|
Sat 21 Mar 2015 12:05:47 AM UTC, comment #4:
This is almost certainly because of gl2ps and its mishandling of polygon_offsets as suggested by Pantxo in comment #2.
The issue is that the axis object itself can have a background color and that this is implemented by a patch object. The line objects at z=0 are getting forced underneath this patch object which is colored white. If you make the axis transparent then I get the desired plot
|
Thu 19 Mar 2015 11:07:54 AM UTC, comment #3:
This is a regression, it used to work in Octave 3.8.1. Marking this bug's severity as "Important" because it's a frequently met use case of plots.
|
Thu 19 Mar 2015 08:02:27 AM UTC, comment #2:
Hi,
Thanks for your bug report. I can confirm the bug on both fltk an qt graphics toolkits.
As you can see on out1.png, the last marker on the right hand side is not clipped in the axes area and the red edge is displayed on the outer part of the marker. All lines are actually hidden behind the background plane of the axes.
This is most probably due to gl2ps not handling correctly multiple polygon_offsets in a single figure. See bug #44111 for an explanation. I'll try to see if something can be done in Octave to workaround this.
|
Thu 19 Mar 2015 06:55:27 AM UTC, comment #1:
Sorry, I was wrong the example code. Please replace 'o' with 'o-' ,as follows.
% Example1 (this code generates desired images)
plot(1:20,'o-','MarkerSize',10,'MarkerFaceColor','none','Color','r');grid on;print -dpng out0.png;print -depsc2 out0.eps;
% Example2 (this code generates images which have no plot- and grid-lines. However, markers and grid-labels are shown.)
plot(1:20,'o-','MarkerSize',10,'MarkerFaceColor','b','Color','r');grid on;print -dpng out1.png;print -depsc2 out1.eps;
|
Thu 19 Mar 2015 06:49:29 AM UTC, original submission:
I found a bug about print.m.
print.m can generate a image file, but the generated image have no plot/grid-lines.
% Example1 (this code generates desired images)
plot(1:20,'o','MarkerSize',10,'MarkerFaceColor','none','Color','r');grid on;print -dpng out0.png;print -depsc2 out0.eps;
% Example2 (this code generates images which have no plot- and grid-lines. However, markers and grid-labels are shown.)
plot(1:20,'o','MarkerSize',10,'MarkerFaceColor','b','Color','r');grid on;print -dpng out1.png;print -depsc2 out1.eps;
|