bugGNU Octave - Bugs: bug #34142, printing to gif does not output...

 
 

bug #34142: printing to gif does not output text elements.

Submitter:  None
Submitted:  Fri 26 Aug 2011 04:08:20 PM UTC
   
 
Category:  Plotting with gnuplot Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Wont Fix Assigned to:  bpabbott
Originator Name:  Originator Email:  -email is unavailable-
Open/Closed:  * Closed Release:  * 3.4.0
Operating System:  * GNU/Linux Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 02 Sep 2011 02:21:18 AM UTC, comment #3: 

This is a bug/feature of gnuplot.

The solution provided by Octave's developers to overcome the limitations of gnuplot was to introduce an OpenGL backend (FLTK). Unfortunately, there is no gif output available from the OpenGL backend.

I don't see how anything can be done from Octave to overcome this problem. Thus, I'm inclined to close this item.

However, I'll keep in open temporally to allow for suggestions.


Ben Abbott <bpabbott>
Group Member
Mon 29 Aug 2011 04:49:41 AM UTC, comment #2: 

This is a work around which produces usable (though less pretty) text on gif

 print ('plot-test','-dgif','-Farial');
Could not find/open font when opening font arial , trying default


Presumably it should already have been try the default font but was not.

Anonymous
Mon 29 Aug 2011 04:27:58 AM UTC, comment #1: 

while png does output correctly I also find similar issues if I try to create debug output for png (as a aid to finding the gif bug.).


 print ('plot.png','-dpng');
 drawnow ('png','plot.png', false,  "debug.gp")
gdImageStringFT: Could not find/open font while printing string -0.8 with font {}
gdImageStringFT: Could not find/open font while printing string -0.6 with font {}
gdImageStringFT: Could not find/open font while printing string -0.4 with font {}
gdImageStringFT: Could not find/open font while printing string -0.2 with font {}

this is the debug output for either gif or png, it fails as soon as it tries to add the title:

set title " non-rad : rad = 0.3:0.7" font "{},10" enhanced;
set xlabel "dSST / K" textcolor rgb "#000000" font "{},10" enhanced rotate by 0.000000;


A fairly simple and obvious bug: if no font is explicitly set it is outputting octave's indication of an empty cell array instead of skipping the unnecessary font specifier and comma.


Please fix gif output.

Anonymous
Fri 26 Aug 2011 04:08:20 PM UTC, original submission:  

printing to gif does not output text elements. png works correctly.

working in gnuplot directly can produce both png and gif output.



 print ('oct-test.gif','-dgif')
Could not find/open font when opening font 10, trying default
gdImageStringFT: Could not find/open font while printing string -0.2 with font {}
gdImageStringFT: Could not find/open font while printing string -0.1 with font {}
gdImageStringFT: Could not find/open font while printing string 0 with font {}
gdImageStringFT: Could not find/open font while printing string 0.1 with font {}
gdImageStringFT: Could not find/open font while printing string 0.2 with font {}
gdImageStringFT: Could not find/open font while printing string 0.3 with font {}
gdImageStringFT: Could not find/open font while printing string 0.4 with font {}
gdImageStringFT: Could not find/open font while printing string 0.5 with font {}
gdImageStringFT: Could not find/open font while printing string -15 with font {}
gdImageStringFT: Could not find/open font while printing string -10 with font {}
gdImageStringFT: Could not find/open font while printing string -5 with font {}
gdImageStringFT: Could not find/open font while printing string 0 with font {}
gdImageStringFT: Could not find/open font while printing string 5 with font {}
gdImageStringFT: Could not find/open font while printing string 10 with font {}
gdImageStringFT: Could not find/open font while printing string 15 with font {}
gdImageStringFT: Could not find/open font while printing string correlation coeff with font {}

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bpabbott (Posted a comment)
  •  

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-12 bpabbott Open/ClosedOpen Closed
    2011-09-02 bpabbott StatusNone Wont Fix
        Assigned toNone bpabbott

    Back to the top

    Powered by Savane 3.13-aa77.
    Corresponding source code