octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #33232] gtext('bla\nbla') different in gnuplot


From: kloof
Subject: [Octave-bug-tracker] [bug #33232] gtext('bla\nbla') different in gnuplot and fltk
Date: Wed, 04 May 2011 16:56:28 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Ubuntu/10.10 Chromium/10.0.648.133 Chrome/10.0.648.133 Safari/534.16

URL:
  <http://savannah.gnu.org/bugs/?33232>

                 Summary: gtext('bla\nbla') different in gnuplot and fltk
                 Project: GNU Octave
            Submitted by: kloof
            Submitted on: Wed 04 May 2011 04:56:27 PM GMT
                Category: Plotting with gnuplot
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.4.0
        Operating System: GNU/Linux

    _______________________________________________________

Details:

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 
line2 
line3 

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



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




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?33232>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]