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

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

[Octave-bug-tracker] [bug #65659] additional bar in bar plot has wrong w


From: Hartmut
Subject: [Octave-bug-tracker] [bug #65659] additional bar in bar plot has wrong width (using hold on)
Date: Mon, 29 Apr 2024 09:54:40 -0400 (EDT)

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

                 Summary: additional bar in bar plot has wrong width (using
hold on)
                   Group: GNU Octave
               Submitter: hardy
               Submitted: Mon 29 Apr 2024 01:54:40 PM UTC
                Category: Octave Function
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Inaccurate Result
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 9.1.0
         Discussion Lock: Any
        Operating System: Any
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Mon 29 Apr 2024 01:54:40 PM UTC By: Hartmut <hardy>
I have observed the following akward behavior of the bar plot command in
Octave. I run the following demo code:


clear, close all

data = [10 2 10 10 10];

bar(data)
hold on
bar(2, data(2))


And I get a figure with a bar plot, where the second bar has a much bigger
width compared to the other four bars in the plot. This second bar even covers
some of its two neighboring bars.

I consider this imperfect plotting behavior of Octave, especially because in
Matlab the same code gives me a plot with five nice bars of the very same
width.







    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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