bugGNU Octave - Bugs: bug #46529, wrong data when printing to PDF,...


bug #46529: wrong data when printing to PDF, EPS or PS

Submitted by:  Andreas Stahel <sha1>
Submitted on:  Wed 25 Nov 2015 01:51:23 PM UTC  
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Inaccurate Result
Status:  Duplicate Assigned to:  None
Originator Name:  Andreas Stahel Open/Closed:  Closed
Release:  dev 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.


Sun 03 Jul 2016 08:21:11 PM UTC, comment #4: 

This bug may be fixed like bug #47858 (wrong line joins)

ederag <ederag>
Wed 25 Nov 2015 04:52:21 PM UTC, comment #3: 

Closing report as a duplicate.

Rik <rik5>
Project Administrator
Wed 25 Nov 2015 04:44:54 PM UTC, comment #2: 

Yes, looks like it. That would be bug #32980. Ok to close as a duplicate unless there is some interest in keeping this open.

Example workaround, decimating the series by a factor of 10:

t = linspace (0, 1.2, 2^13);
y = min (1, 50 * exp (-10 * t));
noise = 0.001 * randn (size (t));
y = y + noise;
plot (t(1:10:end), y(1:10:end));
print ...

Mike Miller <mtmiller>
Project Administrator
Wed 25 Nov 2015 04:13:28 PM UTC, comment #1: 

Isn't this the notorious single-precision "bug" in OpenGL? several bug reports and duplicates have been entered for this one.

Philip Nienhuis <philipnienhuis>
Project Member
Wed 25 Nov 2015 01:51:23 PM UTC, original submission:  

Dear developers

When the figure below is shown on screen it is correct, when printing to .pdf, .eps or *.ps the noise level is to high.

Problem only shows when using a large data set.

If there is no initial noise, there is no problem.

Problem does show with graphics_toolkit qt and fltk,
it does not show with gnuplot.

The problems shows on two different Linux hosts, with versions 4.0.0 and the developer version of Octave.

% test PDF generation, qt and fltk produce wrong result, gnuplot is OK
t = linspace(0,1.2,100);  % no problem in PDF
t = linspace(0,1.2,2^13); % problem in PDF
y = min(1,50*exp(-10*t));
noise = 0.001*randn(size(t)); % no noise, no problem
y = y + noise;
MaximalAmplitude = max(y)

print -dpdfwrite TestPDF.pdf
print -depsc TestPDF.eps
print -dps TestPDF.ps

Andreas Stahel <sha1>


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

Attach Files:

No files currently attached


   bug dependencies.

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by ederag (Posted a comment)
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by mtmiller (Posted a comment)
  • -email is unavailable- added by sha1 (Submitted the item)

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

    Only project members can vote.




    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-11-25 rik5 Open/ClosedOpen => Closed
    2015-11-25 mtmiller StatusNone => Duplicate
        Dependencies- => Depends on bugs #32980

    Back to the top

    Powered by Savane 3.5