bugGNU Octave - Bugs: bug #46425, black fill when saving some plots

 
 

bug #46425: black fill when saving some plots

Submitter:  None
Submitted:  Thu 12 Nov 2015 01:31:30 AM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  Maksim Grinman Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 4.0.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 18 Nov 2015 01:26:14 PM UTC, comment #6: 

Thanks for the details. This is a known issue, closing as a duplicate of bug #42838. See that bug report for the history and ongoing work on fixing the interaction between Octave and gnuplot version 5.

Mike Miller <mtmiller>
Group Member
Wed 18 Nov 2015 01:05:55 PM UTC, comment #5: 


> gnuplot --version

gnuplot 5.0 patchlevel 1

> pacman -Ss gnuplot

extra/gnuplot 5.0.1-1 [installed]

Maksim Grinman <mgrinman>
Wed 18 Nov 2015 05:45:40 AM UTC, comment #4: 

Which version of gnuplot you are using?

Avinoam Kalma <avinoam>
Group Member
Wed 18 Nov 2015 12:19:01 AM UTC, comment #3: 

I attached the two files generated (log file and eps file) generated by the command

octave:1> plot(rand(3))
octave:2> print(1, '-depsc', 'out', '-debug')

I'm using gnuplot:
octave:3> graphics_toolkit
ans = gnuplot

As in the original comment I'm using ghostscript 9.18 on a Linux box.

Running the following command (was modified from the original post to target this new eps fiile) still shows me the black box

/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dLanguageLevel=2 -dEmbedAllFonts=true -dOptimize=true -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="out.pdf" out.eps

Maksim Grinman <mgrinman>
Thu 12 Nov 2015 08:04:38 PM UTC, comment #2: 

Works also for me under Windows


>> print(2,'test.pdf','-debug');
error: strtrim: S argument must be a string or cellstring


but


>> print('test.pdf','-debug');


works well

Avinoam Kalma <avinoam>
Group Member
Thu 12 Nov 2015 11:38:47 AM UTC, comment #1: 

Hi,

Thanks for your bug report. I can't confirm this bug, using ghostscript 9.10 (the default on my system) all outputs are fine.

Do you obtain the same result using "-depsc" format? If so can you attach the file?
What graphics_toolkit are you using? If you are using the default "qt", can you switch to "fltk" and see if you obtain the same results?

Pantxo Diribarne <pantxo>
Group Member
Thu 12 Nov 2015 01:31:30 AM UTC, original submission:  

octave> plot(rand(3))  % I see a colored plot with 3 lines
octave> print(2,'test.pdf','-debug')
---- begin /tmp/oct-AnIoEw.ps ----
%!PS-Adobe-3.0
<< /Margins [0 0] /.HWMargins [0 0 0 0] /PageOffset [18 180] >> setpagedevice
%%EOF
----- end /tmp/oct-AnIoEw.ps -----
Ghostscript command: '/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dLanguageLevel=2 -dEmbedAllFonts=true -dOptimize=true -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="test.pdf" /tmp/oct-AnIoEw.ps /tmp/oct-wLu5fG.eps'
gnuplot-pipeline: '/usr/bin/gs -dQUIET -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -dLanguageLevel=2 -dEmbedAllFonts=true -dOptimize=true -dEPSCrop -sPAPERSIZE=letter -dFIXEDMEDIA -sOutputFile="test.pdf" /tmp/oct-AnIoEw.ps /tmp/oct-wLu5fG.eps ; rm /tmp/oct-wLu5fG.eps ; rm /tmp/oct-AnIoEw.ps'

The generated test.pdf shows an x and y axis but the graph is a large black filled rectangle.

Saving as png or jpg has the same result, but saving as svg does not have this problem.

Some plots do not have this problem. The following plot does not have this problem:

octave> clf()
octave> surf(peaks)

Saving that outputs the expected color graph.

My setup:
4.2.3-1-ARCH (Arch Linux)
GNU Octave, version 4.0.0
GPL Ghostscript 9.18 (2015-10-05)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #35484:  octave-print-commands.log added by None (4KiB - text/x-log - Result of print(1, '-depsc', 'out', '-debug'))
file #35485:  out.eps added by None (24KiB - application/postscript - Result of print(1, '-depsc', 'out', '-debug'))

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by mgrinman (Posted a comment)
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by pantxo (Posted a comment)
  • -email is unavailable- added by None (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-18 mtmiller StatusWorks For Me Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #42838
    2015-11-18 pantxo CategoryPlotting with OpenGL Plotting with gnuplot
    2015-11-18 None Attached File- Added octave-print-commands.log, #35484
        Attached File- Added out.eps, #35485
    2015-11-12 pantxo StatusNone Works For Me

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code