bugGNU Octave - Bugs: bug #42838, gnuplot 5.0 print gives black plots

 
 

bug #42838: gnuplot 5.0 print gives black plots

Submitted by:  None
Submitted on:  Thu 24 Jul 2014 07:40:41 PM UTC  
 
Category: Plotting with gnuplotSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: ConfirmedAssigned to: None
Originator Name: Originator Email: -unavailable-
Open/Closed: OpenRelease: 3.8.1
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich 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 30 Jul 2014 01:31:18 AM UTC, comment #14:

When I've attempted it in the past, it was a long process, but If you have the time, it may be possible to isolate the problem by selectively removing commands from the gnuplot plot-stream produced by octave. Unfortunately, the binary data makes that painful :-(

Ben Abbott <bpabbott>
Project Member
Wed 30 Jul 2014 01:26:25 AM UTC, comment #13:

No, that simple example works perfectly both on-screen with either X11 or Qt terminals, and EPS output looks right.

Mike Miller <mtmiller>
Project Member
Wed 30 Jul 2014 01:21:22 AM UTC, comment #12:

In my previous comment, the gnuplot commands are preceded by "gnupot>". The rest is gnuplot output.

Ben Abbott <bpabbott>
Project Member
Wed 30 Jul 2014 01:19:33 AM UTC, comment #11:

Ok. Maybe a simpler test?

Is debug.eps also all black?

Ben Abbott <bpabbott>
Project Member
Wed 30 Jul 2014 01:09:48 AM UTC, comment #10:

Thanks, ok I did that and I get the same plot, all black plot background with only the axis tickmarks visible. EPS file from gnuplot 5.0rc1 attached.

This has not been reported to gnuplot as far as I know.

(file #31795)

Mike Miller <mtmiller>
Project Member
Wed 30 Jul 2014 12:44:10 AM UTC, comment #9:

Has this problem been reported to the gnuplot developers?

Can someone running gnuplot v5rc# try editing the log file (file #31773, octave-print-commands.log) and change the 3rd line to

Then from a terminal/shell prompt, type

And then attach the eps-file (junk.eps) that is created.

If the file looks good, then there may be a bug in Octave. However, if the
plot looks bad, then my expectation is that the bug is with gnuplot.

Ben Abbott <bpabbott>
Project Member
Wed 30 Jul 2014 12:37:06 AM UTC, comment #8:

Ben, can you repost your suggestion? It got mangled by savannah. All I saw in the email copy was to rename the output file to './debug.eps'. I tried this, no difference.

Mike Miller <mtmiller>
Project Member
Sat 26 Jul 2014 06:20:42 PM UTC, comment #7:

Has this problem been reported to the gnuplot developers?

Can someone running gnuplot v5rc# try editing the log file and change the 3rd line to

Ben Abbott <bpabbott>
Project Member
Fri 25 Jul 2014 01:00:31 AM UTC, comment #6:

That means I am posting the log to gnuplot bug tracker?

(file #31773)

Anonymous
Fri 25 Jul 2014 12:56:50 AM UTC, comment #5:

Use the -debug option:

This will create a file in your current directory called octave-print-commands.log, which is the input file to gnuplot. I just verified that I can do this, pass this file to gnuplot 4.6.5 and it works fine, while it fails with gnuplot 5.0rc1.

Note that the command file will direct gnuplot to create a eps file in the /tmp directory, Octave uses other tools to convert eps to pdf.

Mike Miller <mtmiller>
Project Member
Thu 24 Jul 2014 11:40:07 PM UTC, comment #4:

How should I generate these? I am new to Octave so I am not so sure

Anonymous
Thu 24 Jul 2014 11:34:32 PM UTC, comment #3:

Confirmed here, using gnuplot built from current cvs head (reports version as 5.0 patchlevel rc1).

Since an earlier version of gnuplot works with Octave and the bleeding edge 5.0 prerelease doesn't, you might want to involve the gnuplot developers and see what has changed and where this should be addressed. You can get Octave to generate the intermediate output that is piped to gnuplot if you need for debugging.

Mike Miller <mtmiller>
Project Member
Thu 24 Jul 2014 08:15:45 PM UTC, comment #2:

Btw, it's gnuplot, not GNUPlot. It's unrelated to GNU.

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Thu 24 Jul 2014 08:06:29 PM UTC, comment #1:

Downgraded to GNUPlot 4.6.5 and worked.

Anonymous
Thu 24 Jul 2014 07:40:41 PM UTC, original submission:

I am trying to plot with the attached script, and I get black plots for whatever format I am using as attached PDF. I am using gnuplot graphics package. The plot windows look good though. GNUPlot version is 5.0

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #31795:  debug.eps added by mtmiller (89kB - image/x-eps)
file #31773:  octave-print-commands.log added by None (2MB - text/plain)
file #31770:  Control_to_Output.m added by None (925B - text/x-objcsrc)
file #31771:  Control_to_Output_Magnitude.pdf added by None (18kB - application/unknown)
file #31772:  Control_to_Output_Phase.pdf added by None (12kB - application/unknown)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bpabbott (Posted a comment)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by jordigh (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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 30 Jul 2014 01:09:48 AM UTCmtmillerAttached File-=>Added debug.eps, #31795
    Fri 25 Jul 2014 01:00:31 AM UTCNoneAttached File-=>Added octave-print-commands.log, #31773
    Thu 24 Jul 2014 11:34:32 PM UTCmtmillerStatusNone=>Confirmed
      Summarygnuplot print gives black plots=>gnuplot 5.0 print gives black plots
    Thu 24 Jul 2014 08:15:45 PM UTCjordighSummaryGNUPlot print gives black plots=>gnuplot print gives black plots
    Thu 24 Jul 2014 07:40:41 PM UTCNoneAttached File-=>Added Control_to_Output.m, #31770
      Attached File-=>Added Control_to_Output_Magnitude.pdf, #31771
      Attached File-=>Added Control_to_Output_Phase.pdf, #31772

    Back to the top


    Powered by Savane 3.1-cleanup