bugGNU Octave - Bugs: bug #44458, printing figures with Gnuplot 5...

 
 

bug #44458: printing figures with Gnuplot 5 produces a black rectangle

Submitter:  None
Submitted:  Fri 06 Mar 2015 08:10:02 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Duplicate Assigned to:  None
Originator Name:  Matthias Brennwald Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * dev
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Sun 24 Apr 2016 10:54:48 PM UTC, comment #8: 

Ah, didn't see there was a new Octave. Homebrew is not updated to the new version yet. :/

Jasper <jazzcatt>
Sun 24 Apr 2016 10:45:33 PM UTC, comment #7: 

As noted in bug #42838, this is fixed in Octave 4.0.1 or later.

Mike Miller <mtmiller>
Group Member
Sun 24 Apr 2016 10:27:57 PM UTC, comment #6: 

Has anyone solved this problem on a mac? I still get a black rectangle!
I'm using gnuplot 5.0.3 with aquaterm and octave 4.0.0.
Interestingly print does work for 3d plots (plot3()) but not for plot().
Similarly with saveas.

Jasper <jazzcatt>
Sat 07 Mar 2015 09:02:06 PM UTC, comment #5: 

OK, thanks for letting me know about the regression issue.  I too was confused by the black rectangle.  I thought it was something having to do with "mono" in gnuplot.  I'll make sure this gets fixed in gnuplot.

Dan Sebald <sebald>
Sat 07 Mar 2015 06:55:38 PM UTC, comment #4: 

And just found the existing bug report about this same error (that I had also commented on previously). Marking this bug as a duplicate of bug #42838. Please follow up on that bug report with any further comments or patches.

Mike Miller <mtmiller>
Group Member
Sat 07 Mar 2015 06:27:17 PM UTC, comment #3: 

I see this for any file format using Gnuplot version 5 on Linux. This seems like a Gnuplot regression to me. Notably, building Octave's doc/interpreter images using Gnuplot 5 produces all black outputs. Switching back to Gnuplot 4.6.6 gives the correct output.

I now remember running into this previously when building the html docs for the signal and communications package and found then the same thing, that going back to Gnuplot 4 restores working figures.

Mike Miller <mtmiller>
Group Member
Sat 07 Mar 2015 05:02:24 PM UTC, comment #2: 

I don't know how to work with the patch mentioned for another bug report. In the meanwhile, I was able to get it working by going back to the gnuplot 4.6 (instead of version 5.0) in my MacPorts installation:

  svn co -r 128085 http://svn.macports.org/repository/macports/trunk/dports/math/gnuplot
  cd gnuplot/
  sudo port install

Plotting and print(...) now seems to work as desired for me.

Matthias Brennwald <mbrennwa>
Sat 07 Mar 2015 01:32:55 AM UTC, comment #1: 

I see from the PDF file:

<xmp:CreatorTool>gnuplot 5.0 patchlevel 0</xmp:CreatorTool></rdf:Description>

that you used the gnuplot graphics toolkit.  I'm working on addressing this along with several other bugs at the moment and will have a patch by the end of the day at this bug report: https://savannah.gnu.org/bugs/?44187 and you can be a tester.

We'll keep this bug report open for now so that others wanting to report the same notice this near the top of the list.  But let's put all comments at just https://savannah.gnu.org/bugs/?44187, then close this sometime around 3/8/15.

Dan Sebald <sebald>
Fri 06 Mar 2015 08:10:02 PM UTC, original submission:  

If I try to print a figure to a graphics file (I have tried PDF and EPS), the resulting graphics is a solid black rectangle. Opening the graphics file in a vector graphics editor program reveals that the rectangle covers the lines originally included in the plot. However, the line color is lost (it's all black and white instead of colored lines).

Here's a code example

  > plot (rand(5,1))
  > print ('test.pdf')

--> The resulting file (test.pdf) contains the graphics as described above.

(This is on Mac OS X 10.10)

Anonymous

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #33267:  test.pdf added by None (3KiB - application/pdf)

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jazzcatt (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by mbrennwa (Posted a comment)
  • -email is unavailable- added by sebald (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 9 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-03-07 mtmiller StatusConfirmed Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #42838
    2015-03-07 mtmiller CategoryPlotting Plotting with gnuplot
        StatusNone Confirmed
        Release3.8.2 dev
        Operating SystemMac OS Any
        SummaryPrinting figure gives black rectangle printing figures with Gnuplot 5 produces a black rectangle
    2015-03-06 None Attached File- Added test.pdf, #33267

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code