bugGNU Octave - Bugs: bug #51464, Line plotted over image only...

 
 

bug #51464: Line plotted over image only partially visible when print()ed

Submitter:  Martin Kunz <mkunz>
Submitted:  Fri 14 Jul 2017 07:55:18 AM UTC
   
 
Category:  Plotting Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  mkunz Open/Closed:  * Closed
Release:  * dev Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 14 Jul 2017 06:21:08 PM UTC, comment #2: 

I think it is the older version of gl2ps vs newer version.
I cannot reproduce this problem with 4.2.1 and gl2ps-1.4.0.

Dmitri.
--

Dmitri A. Sergatskov <dasergatskov>
Fri 14 Jul 2017 05:49:06 PM UTC, comment #1: 

Thank you for reporting the issue.
I can reproduce with Octave 4.2.1, but no longer with a current development version of Octave. Closing as fixed.

You can work around that issue by placing the lines at a higher z-value:

figure (1)
imagesc (magic (4))
hold on
line ([1,1,4,4], [1,4,1,4], [1,1,1,1])
hold off
zlim ([0 1])
print -dpng -r0 lineOnImage.png
print -dpdf -r0 lineOnImage.pdf


Markus Mützel <mmuetzel>
Group administrator
Fri 14 Jul 2017 07:55:18 AM UTC, original submission:  

The following script


figure (1)
imagesc (magic (4))
hold on
line ([1,1,4,4], [1,4,1,4])
hold off
print -dpng -r0 lineOnImage.png
print -dpdf -r0 lineOnImage.pdf


produces on screen a line with three segments over an image (see lineOnImageScreenshot.png) as expected. When saving to PNG or PDF, the first two segments are missing (see other attached files). This happens with all graphics toolkits.

By taking apart the PDF in Inkscape, I found that the first two lines are present, but hidden behind the image.

I am using Octave 4.2.1 from https://ftp.gnu.org/gnu/octave/windows/:


>> ver ("Octave")
----------------------------------------------------------------------
GNU Octave Version: 4.2.1
GNU Octave License: GNU General Public License
Operating System: MINGW32_NT-6.1 Windows 7 Service Pack 1 x86_64
----------------------------------------------------------------------



Martin Kunz <mkunz>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #41201:  lineOnImageScreenshot.png added by mkunz (32KiB - image/png)
file #41202:  lineOnImage.png added by mkunz (4KiB - image/png)
file #41203:  lineOnImage.pdf added by mkunz (3KiB - 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 dasergatskov (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by mkunz (Submitted the item)
  •  

    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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-07-14 mmuetzel StatusNone Fixed
        Open/ClosedOpen Closed
        Release4.2.1 dev
    2017-07-14 mkunz Attached File- Added lineOnImageScreenshot.png, #41201
        Attached File- Added lineOnImage.png, #41202
        Attached File- Added lineOnImage.pdf, #41203

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code