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

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

[Octave-bug-tracker] [bug #58305] Colorbar scale errors for very low num


From: Rik
Subject: [Octave-bug-tracker] [bug #58305] Colorbar scale errors for very low numbers
Date: Sat, 23 May 2020 12:21:18 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:56.0) Gecko/20100101 Firefox/56.0

Update of bug #58305 (project octave):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Yes, this is just another problem related to the use of single precision for
the OpenGL backend.

The issue is relatively easy to workaround.  Scale the numbers by an arbitrary
factor, say 1e6, so they are no longer below "eps ('single')".  Plot the data.
 Add the colorbar, but get the handle to it.  Adjust the labels manually.

In pseudo-code


data = data * 1e6;
plot (data);
h = colorbar ();
set (h, 'yticklabels', { "0.0", "0.5", "1.0" })


Closing report as a duplicate.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58305>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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