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

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

[Octave-bug-tracker] [bug #56302] axis tight buggy


From: Rik
Subject: [Octave-bug-tracker] [bug #56302] axis tight buggy
Date: Fri, 10 May 2019 17:24:54 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Update of bug #56302 (project octave):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                 
        Operating System:                  Mac OS => Any                    

    _______________________________________________________

Follow-up Comment #2:

This is a duplicate of bug #32980.  The issue is that the OpenGL backend
represents values using single precision variables.  The different in time
values you have are less than machine precision for singles (eps ('single')).

The straightforward workaround for now is to re-scale your time values in to
something representable with single precision values.  See the following.


load axisTightData.mat
t_scaled = t / max (t(:));
plot (t_scaled, vout);
axis tight
labels = {"0", "2e-9", "4e-9", "6e-9", "8e-9", "1e-8"};
set (gca, 'xticklabel', labels)


This will get fixed at some point, but it is a deep change to Octave's code
base to workaround the behavior of the OpenGL API.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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