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

 
 

bug #46425: black fill when saving some plots

Submitted by:  None
Submitted on:  Thu 12 Nov 2015 01:31:30 AM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Inaccurate Result
Status: DuplicateAssigned to: None
Originator Name: Maksim GrinmanOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.0.0
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission 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>
Project Administrator
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>
Project 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

but

works well

Avinoam Kalma <avinoam>
Project 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>
Project 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 File(s):
   
   
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
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by mgrinman (Posted a comment)
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by pantxo (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 18 Nov 2015 01:26:14 PM UTCmtmillerStatusWorks For Me=>Duplicate
      Open/ClosedOpen=>Closed
      Dependencies-=>Depends on bugs #42838
    Wed 18 Nov 2015 07:03:42 AM UTCpantxoCategoryPlotting with OpenGL=>Plotting with gnuplot
    Wed 18 Nov 2015 12:14:03 AM UTCNoneAttached File-=>Added octave-print-commands.log, #35484
      Attached File-=>Added out.eps, #35485
    Thu 12 Nov 2015 11:38:47 AM UTCpantxoStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup1