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

John W. Eaton jwe at bevo.che.wisc.edu
Wed Dec 5 09:08:15 CST 2007


On  5-Dec-2007, Matthias Brennwald wrote:

| 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')
| --------------

If you thnk you've found a bug in Octave, please submit a *complete*
bug report to the bug at octave.org list.  Please read
http://www.octave.org/bugs.html to see what to include in your report
so that it is useful.

How many times do I have to say this?

jwe


More information about the Help-octave mailing list