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

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

[Octave-bug-tracker] [bug #56276] Inaccurate barplot when time on x-axis


From: Pantxo Diribarne
Subject: [Octave-bug-tracker] [bug #56276] Inaccurate barplot when time on x-axis
Date: Mon, 6 May 2019 09:31:13 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Update of bug #56276 (project octave):

                  Status:                    None => Duplicate              
             Open/Closed:                    Open => Closed                 
        Operating System:       Microsoft Windows => Any                    

    _______________________________________________________

Follow-up Comment #1:

This is due to the OpenGL rendering engine that uses single precision. See bug
#32980.

To workaround this issue, since you plot data that are all enclosed in a
single day, you can remove the day offset:


close all
clear all

data = rand(10,1);
starttime = datenum(2019,5,6,6,0,0);
endtime = datenum(2019,5,6,15,0,0);
xtime = [starttime:1/24:endtime]' - floor (starttime);

figure();
bar(xtime, data);
datetick('x', 'HH:MM')


Closing report as a duplicate.

    _______________________________________________________

Reply to this item at:

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

_______________________________________________
  Message posté via Savannah
  https://savannah.gnu.org/




reply via email to

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