bugGNU Octave - Bugs: bug #33232, gtext('bla\nbla') different in...


bug #33232: gtext('bla\nbla') different in gnuplot and fltk

Submitter:  kloof <kloof>
Submitted:  Wed 04 May 2011 04:56:27 PM UTC
Category:  Plotting with OpenGL Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  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)

Comment Type & Canned Response:


Fri 30 Sep 2011 05:06:02 PM UTC, comment #2: 

Fixed in this changeset (http://hg.savannah.gnu.org/hgweb/octave/rev/b6efe55f97c7).  Reporter can build from development sources or wait for the 3.6 release in December 2011 to see the fix.

Rik <rik5>
Project Administrator
Thu 05 May 2011 02:38:30 AM UTC, comment #1: 

This is a duplicate of bug #31468.  Multi-line text objects are possible with gnuplot, but have not been coded for the FLTK toolkit yet.

Rik <rik5>
Project Administrator
Wed 04 May 2011 04:56:27 PM UTC, original submission:  

I used to insert '\n' in a string to get a items beneath each other with text() of gtext().

gnuplot does this, but the FLTK graphics_toolkit does not use the newlines.

---- below is what demonstrates the issue (when changing gnuplot to fltk).

octave:1> graphics_toolkit ('gnuplot')
octave:2> x=linspace(0,3,100) ; y=sin(x) ;plot(x,y,'r;sin(x);')
octave:3> s=sprintf('line1\nline2\nline3\n')
s = line1

octave:4> gtext(s)    %click on the plot somewhere.....

I think there should be 1 policy here, independent of the backend.

kloof <kloof>


(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 rik5 (Posted a comment)
  • -email is unavailable- added by kloof (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 project members can vote.





    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-09-30 rik5 CategoryPlotting with gnuplot Plotting with OpenGL
        StatusDuplicate Fixed
        Open/ClosedOpen Closed
        Summarygtext(\'bla\\nbla\') different in gnuplot and fltk gtext('bla\nbla') different in gnuplot and fltk
    2011-05-05 rik5 StatusNone Duplicate
        Summarygtext(\'bla\\nbla\') different in gnuplot and fltk gtext('bla\nbla') different in gnuplot and fltk
        Dependencies- Depends on bugs #31468

    Back to the top

    Powered by Savane 3.10