text (...) function behaviour for large numbers? Bug?

Matthias Brennwald matthias at brennwald.org
Wed Dec 5 13:40:58 CST 2007


Dear all

I tried to use the text(...) command for text labels in a plot with
large numbers. For y coordinates larger than 2E9, the text is not placed
correctly. Try this to see what I mean:

--------------
plot(rand(1,10)*1e10)
axis ([1 10 1e8 1e10]);
text(2,1e9,'1E9')
text(3,2e9,'2E9')
text(4,3e9,'3E9')
text(5,4e9,'4E9')
text(6,5e9,'5E9')
--------------

Matthias


(This message was copied from the help-octave list. David Bateman  
already gave some information on the problem there)


-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
matthias at brennwald.org





More information about the Bug-octave mailing list