bugGNU Octave - Bugs: bug #45832, surface print contains holes...

 
 

bug #45832: surface print contains holes (Windows only)

Submitter:  None
Submitted:  Thu 27 Aug 2015 08:24:22 AM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.2.0
Operating System:  * Microsoft Windows Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sat 09 Mar 2019 03:53:32 PM UTC, comment #7: 

I have re-tested the code from comment #2 with the new Octave 5.1.0 release (official w64 installer) on Windows 7. I see:

  • The "holes" in the plot, as originally reported, are still gone (as already observed in my comment #5).
  • The pdf output is not cropped in any wrong way. (This is better as observed in my commment #5).


The output is still not perfect (look at the z-axis thickness between 4 and 5). But I would summarize that it looks equally good as the rendered screen output (which has the same z-axis look in this case). So my suggestion would be to CLOSE this bug report as "fixed".

I will attach my two pdf output files, so anyone can judge himself.

(file #46474, file #46475)

Hartmut <hardy>
Sun 03 Mar 2019 04:05:24 PM UTC, comment #6: 

Version 4.2.0 is deprecated and no longer supported.  Please try with the latest stable release which is 5.1.0.  The problem is likely to have been fixed.

Rik <rik5>
Group administrator
Thu 29 Dec 2016 10:58:14 PM UTC, comment #5: 

I have tested this with Octave 4.2.0 under Windows XP.

Using the test code from comment #2 I see:

  • The resulting pdf files do not have "holes" any more.
  • But the figures in the pdf files are now both cropped at the top.
Hartmut <hardy>
Wed 02 Sep 2015 07:21:15 PM UTC, comment #4: 

I have run this script on Linux machine (ubuntu) with gl2ps-1.3.8 and there is no problem. May it's a ghostscript problem,
Octave 4.0.0 os bundlesd with 1.3.8.

(BTW: using
print test.ps
with MXE-Octave on windows creates a monochrome postscript, and not
colored).

Avinoam Kalma <avinoam>
Group Member
Mon 31 Aug 2015 03:54:26 PM UTC, comment #3: 

I can confirm this on a Windows XP virtual machine.  The problem is only with OpenGL, gnuplot printing works fine and can be a workaround for the original bug reporter.

The plot is also fine on a Linux machine that uses gl2ps-1.3.6.  MXE Octave is using gl2ps-1.3.8 now which could be the issue.  I don't know what version of gl2ps was bundled with 4.0.0.

Rik <rik5>
Group administrator
Mon 31 Aug 2015 04:03:28 AM UTC, comment #2: 


The script is probably:


 set (gcf, "papersize", [6.4, 4.8])
 set (gcf, "paperposition", [0, 0, 6.4, 4.8])
 colormap(jet);
 [x,y] = meshgrid(0:.1:5);
 z=2.5 + 2.5*tanh( (1-(x-3).*(x-3)-5*(y-4).*(y-4))*5 );
 surf(x,y,z);
 print -mono test1.pdf
 print test2.pdf


I presume that the bug is related to gl2ps, because plotting with
gnuplot does not produce this "holes" in the image.
The catogory should be changed to "Plotting with OpenGL".

Avinoam Kalma <avinoam>
Group Member
Thu 27 Aug 2015 06:34:09 PM UTC, comment #1: 

Could you upload the sample script, or re-post on the bug tracker but use the verbatim tags?


Sample verbatim usage:


+verbatim+
Code goes here, unmodified by markup language in bug tracker

-verbatim-

Rik <rik5>
Group administrator
Thu 27 Aug 2015 08:24:22 AM UTC, original submission:  

The script

set (gcf, "papersize", [6.4, 4.8])
set (gcf, "paperposition", [0, 0, 6.4, 4.8])
colormap(jet);
[x,y] = meshgrid(0:.1:5);
z=2.5 + 2.5*tanh( (1-(x-3).*(x-3)-5.*(y-4).*(y-4))*5 );
surf(x,y,z);
print -mono test1.pdf
print test2.pdf

leads to pdf's with "holes" as attached.
See e.g. the corner near (5,5)

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #46474:  test1_(Octave5.1.0+Win7).pdf added by hardy (187KiB - application/pdf)
file #46475:  test2_(Octave5.1.0+Win7).pdf.pdf added by hardy (186KiB - application/pdf)
file #34756:  test1.pdf added by None (141KiB - application/pdf)
file #34757:  test2.pdf added by None (140KiB - application/pdf)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by hardy (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 11 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-03-09 rik5 StatusConfirmed Fixed
        Open/ClosedOpen Closed
    2019-03-09 hardy Attached File- Added test1_(Octave5.1.0+Win7).pdf, #46474
        Attached File- Added test2_(Octave5.1.0+Win7).pdf.pdf, #46475
    2016-12-30 rik5 Release4.0.0 4.2.0
    2015-08-31 rik5 CategoryPlotting Plotting with OpenGL
        StatusNeed Info Confirmed
        Summarysurface print contains holes surface print contains holes (Windows only)
    2015-08-27 rik5 StatusNone Need Info
    2015-08-27 None Attached File- Added test1.pdf, #34756
        Attached File- Added test2.pdf, #34757

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code