bugGNU Octave - Bugs: bug #30023, printing with FLTK active gives...

 
 

bug #30023: printing with FLTK active gives error

Submitter:  Ben Abbott <bpabbott>
Submitted:  Tue 01 Jun 2010 11:43:26 AM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Fixed Assigned to:  None
Originator Name:  Ben Abbott Open/Closed:  * Closed
Release:  * dev Operating System:  * Mac OS
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 24 Jan 2017 09:48:22 PM UTC, comment #5: 

Marking as "Fixed"

Avinoam Kalma <avinoam>
Group Member
Thu 01 Jul 2010 11:18:09 PM UTC, comment #4: 

The error is gone, so I'm closing this one.

Ben Abbott <bpabbott>
Group Member
Fri 25 Jun 2010 04:16:38 AM UTC, comment #3: 

As for the fltk print file being eps: fltk_backend only knows how to produce eps output, and I did not yet implement converting this into the other formats using ghostscript. A similar mechanism already exists for the few formats that gnuplot does not produce natively, it just has to be ported.

As for the surface disappearing - I'll look into it later

Shai Ayal <shaiay>
Thu 24 Jun 2010 01:22:34 PM UTC, comment #2: 

The error is gone for me, but I see some unexpected behavior. The code below does produce output ...

  backend fltk
  surf (peaks)
  print -dpdf test.pdf

However, the pdf file is actually a ps file.

Also, after printing, the surface displayed in the FLTK plot window disappears. If I print a second time it returns. I've uploaded a couple of images.


Ben Abbott <bpabbott>
Group Member
Thu 24 Jun 2010 04:14:11 AM UTC, comment #1: 

this changeset should fix it: 570f30a48732

Shai Ayal <shaiay>
Tue 01 Jun 2010 11:43:26 AM UTC, original submission:  

If an attempt to print is made when the FLTK backend is active, the error below is produced.

ferror: fflush: invalid stream number = -1
error: called from:
error:   /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/__gnuplot_get_var__.m at line 86, column 7
error:   /Users/bpabbott/Development/mercurial/local_clone/scripts/plot/print.m at line 542, column 27

Either the backend should be checked and an intelligible error given when not gnuplot, or a gnuplot stream should be opened specifically for printing.

Ben Abbott <bpabbott>
Group Member

 

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

Attach Files:
   
   
Comment:
   

Attached Files
file #20805:  Screen shot 2010-06-24 at 9.16.43 AM.png added by bpabbott (29KiB - image/png - images with and without the surface plot)
file #20804:  Screen shot 2010-06-24 at 9.16.30 AM.png added by bpabbott (119KiB - image/png - images with and without the surface plot)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by avinoam (Posted a comment)
  • -email is unavailable- added by shaiay (Posted a comment)
  • -email is unavailable- added by bpabbott (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 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-01-24 avinoam StatusReady For Test Fixed
        Assigned toshaiay None
    2010-07-01 bpabbott Assigned toNone shaiay
        Open/ClosedOpen Closed
    2010-06-24 bpabbott Attached File- Added Screen shot 2010-06-24 at 9.16.43 AM.png, #20805
    2010-06-24 bpabbott Attached File- Added Screen shot 2010-06-24 at 9.16.30 AM.png, #20804
    2010-06-24 shaiay StatusNone Ready For Test

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code