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

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

[Octave-bug-tracker] [bug #32980] for backend FLTK, real is used for axe


From: Rik
Subject: [Octave-bug-tracker] [bug #32980] for backend FLTK, real is used for axes. double should be used
Date: Fri, 24 Feb 2012 17:15:29 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:10.0.2) Gecko/20100101 Firefox/10.0.2

Follow-up Comment #17, bug #32980 (project octave):

The approach is right but it is slightly more complicated.  The data needs to
be shifted AND normalized.  For example, try this simple plot.


x = 1:10;
y = x * 1e40;
h = plot (x,y);


This produces a blank plot for me because 1e40 is beyond what is representable
in a variable of class single.  Offsetting in this case doesn't help because
even after offsetting the new y-axis range is from -5e40 to +5e40 and both of
those values are still not representable.

I think you can get this to work by both shifting by the mean and normalizing
by the mean as well.  I just did some command line work and dividing ydata by
1e40, ytick by 1e40, and ylim by 1e40 caused the correct graph to show up.




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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