bugGNU Octave - Bugs: bug #41368, FLTK: printing does sometimes not...

 
 

bug #41368: FLTK: printing does sometimes not work

Submitter:  Max Görner <maxg>
Submitted:  Mon 27 Jan 2014 06:55:06 PM UTC
   
 
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Works For Me Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.8.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 19 Apr 2014 04:41:24 PM UTC, comment #4: 

I'm going to close this report.  The problem appears to lie with ghostscript, and probably is distribution-specific.  In any case, it does not appear to be a bug in Octave.

Rik <rik5>
Group administrator
Sun 09 Feb 2014 08:17:34 PM UTC, comment #3: 

I've run your script many times on my system (Debian testing 64-bit) and I do not see any problems with the resulting PNG file. If you print to other file formats (pdf or svg) do you see the same kinds of errors?

Judging by the error message you posted, this could be a ghostscript error, a bug in ghostscript or in the Ubuntu packaging of ghostscript (which is different from Debian at the moment).

For your on-screen display problems, what you describe sounds like bug #37598.

Mike Miller <mtmiller>
Group Member
Fri 31 Jan 2014 10:03:22 AM UTC, comment #2: 

Please find the script attached.

Some notes:
The plot looks correct as far as it seems to be possible for FLTK. Sometimes plots with fltk seem to be dashed lines and are in general no as good as those with gnuplot. If this is important, I will describe this more detailed.

Running the script as +verbatim+ octave3.8 fltk_printing_example.m -verbatim-, the resulting image file is faulty but not always as the one I attached in the report. Please see the new image file.

Sometimes, the above script produces error messages. I had to repeatedly restart the script, sometimes up to 13x. The error message is attached.

file #30426, file #30427)

Max Görner <maxg>
Tue 28 Jan 2014 12:33:46 AM UTC, comment #1: 

Can you provide a script or paste the commands you used to generate the attached PNG please?

Does the plot look correct on screen before printing to a PNG?

Mike Miller <mtmiller>
Group Member
Mon 27 Jan 2014 06:55:06 PM UTC, original submission:  

Hi again.
I use an almost vanilla Xubuntu 13.10, 64bit. I compiled Octave 3.8 today and tried some plotting. Unfortuntely, the result is garbage.

To compile Octave, I followed the instructions from http://blogs.bu.edu/mhirsch/2013/12/compiling-octave-3-8/
I typed +verbatim+ make -j 4 -verbatim-, but thats the only difference.

The call of +verbatim+ make check -verbatim- had the same successful result as on the cited web page.

Then I tried to plot stuff. The following code results in the picture I attached. Interestingly, this also fails in Octave 3.6.4 in the same way. I don't know/remember whether it worked before the installation of 3.8.

graphics_toolkit 'fltk'; #only when in 3.6.4
x = -10:0.1:10;
plot (x, sin (x));
print -dpng test.png


Unfortunately, I can't reproduce that behaviour on 2 other machines. I will report the behaviour of a 4th machine tomorrow.

I believe that this simple way of plotting should work even on not freshly installed systems, where 2 versions of Octave are used in parallel!

Max Görner <maxg>

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #30425:  faulty_image_2.png added by maxg (27KiB - image/png)
file #30426:  error_message added by maxg (734B - application/octet-stream)
file #30427:  fltk_printing_example.m added by maxg (78B - text/x-objcsrc)
file #30390:  test.png added by maxg (41KiB - image/png - picture of unsuccessful printing)

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-04-19 rik5 StatusNeed Info Works For Me
        Open/ClosedOpen Closed
    2014-01-31 maxg Attached File- Added faulty_image_2.png, #30425
        Attached File- Added error_message, #30426
        Attached File- Added fltk_printing_example.m, #30427
    2014-01-28 mtmiller CategoryPlotting Plotting with OpenGL
        StatusNone Need Info
    2014-01-27 maxg Attached File- Added test.png, #30390

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code