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

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

[Octave-bug-tracker] [bug #33155] text function fails to display degree


From: Rik
Subject: [Octave-bug-tracker] [bug #33155] text function fails to display degree symbol
Date: Sun, 15 May 2011 01:52:00 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:2.0.1) Gecko/20100101 Firefox/4.0.1

Update of bug #33155 (project octave):

                  Status:                    None => Confirmed              

    _______________________________________________________

Follow-up Comment #1:

Confirmed on a recent development branch tip (2011/05/14).  This is annoying,
but probably won't get fixed immediately.  My guess is that it is an
interaction between how your command window is encoding characters (maybe
UTF-8) and how Octave expects them.

For a temporary workaround, try constructing strings using the hex or decimal
value of the special character you are trying to use.  For example, the degree
symbol has a decimal value of 176 so the following works:


graphics_toolkit gnuplot
plot (1:10);
str = ["100", char(176), " Celcius is 212", char(176), " Fahrenheit"];
ht = text (2,6,str);


This will only work with gnuplot.  The FLTK toolkit won't work even with this
approach.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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