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: anonymous
Subject: [Octave-bug-tracker] [bug #56276] Inaccurate barplot when time on x-axis
Date: Mon, 6 May 2019 05:24:16 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:66.0) Gecko/20100101 Firefox/66.0

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

                 Summary: Inaccurate barplot when time on x-axis
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 06 May 2019 09:24:14 AM UTC
                Category: Plotting with OpenGL
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: fleuzi
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 5.1.0
        Operating System: Microsoft Windows

    _______________________________________________________

Details:

Hi,
when I'm plotting data as bar plot with a serial day number on the x-axis
either the y-axis is not nice and the data is squeezed (Figure 1) or the
x-axis does not show the correct time but only 00:00 (see Figure 2). Is there
a way to avoid these incidents?


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]';

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

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





    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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