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

 
 

bug #30023: printing with FLTK active gives error

Submitted by:  Ben Abbott <bpabbott>
Submitted on:  Tue 01 Jun 2010 11:43:26 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedAssigned to: None
Originator Name: Ben AbbottOpen/Closed: Closed
Release: devOperating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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

Marking as "Fixed"

Avinoam Kalma <avinoam>
Project 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>
Project 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.

(file #20804, file #20805)

Ben Abbott <bpabbott>
Project 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>
Project Member

 

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

Attach File(s):
   
   
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
  • -unavailable- added by avinoam (Posted a comment)
  • -unavailable- added by shaiay (Posted a comment)
  • -unavailable- added by bpabbott (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 7 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 24 Jan 2017 09:48:22 PM UTCavinoamStatusReady For Test=>Fixed
      Assigned toshaiay=>None
    Thu 01 Jul 2010 11:18:09 PM UTCbpabbottAssigned toNone=>shaiay
      Open/ClosedOpen=>Closed
    Thu 24 Jun 2010 01:22:34 PM UTCbpabbottAttached File-=>Added Screen shot 2010-06-24 at 9.16.43 AM.png, #20805
    Thu 24 Jun 2010 01:22:33 PM UTCbpabbottAttached File-=>Added Screen shot 2010-06-24 at 9.16.30 AM.png, #20804
    Thu 24 Jun 2010 04:14:11 AM UTCshaiayStatusNone=>Ready For Test

    Back to the top


    Powered by Savane 3.1-cleanup1