[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65734] same bar plot updates don't properly u
From: |
Nicholas Jankowski |
Subject: |
[Octave-bug-tracker] [bug #65734] same bar plot updates don't properly update axes and labels |
Date: |
Mon, 13 May 2024 13:16:33 -0400 (EDT) |
URL:
<https://savannah.gnu.org/bugs/?65734>
Summary: same bar plot updates don't properly update axes and
labels
Group: GNU Octave
Submitter: nrjank
Submitted: Mon 13 May 2024 01:16:33 PM EDT
Category: Plotting
Severity: 2 - Minor
Priority: 5 - Normal
Item Group: Incorrect 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 13 May 2024 01:16:33 PM EDT By: Nicholas Jankowski <nrjank>
while writing bar/barh tests for bug #65671, i came upon a few cases where
changes to bar data do not trigger needed updates to axes properties:
1) changing to horizontal results in incorrect yaxis ticks/labels
h = bar (2:4);
set (h, 'horizontal', 'on');
result should be identical, or close too h = barh(2:4). vertical axis
ticks/labels are not updated however, leaving a number of intermediate values.
see attached figure comparing both for octave 9.1.0 and matlab. (results are
independent of the pending patch for bug #65671)
2) changing xdata moves the bars but fails to update xlim and xticks to
match:
hf = figure(); hax = axes('parent',hf);
h = bar (hax, 2:4);
set (h, 'xdata', [3:5]') # stored vert, but horiz no difference
set (hax, 'xlim', [2.5 5.5]);
as shown in the figure next to a matlab comparison, setting xdata fails to
update xlim to show the bars, and even with a manual xlim the new xaxis
ticks/lables have not been created.
since changing xdata calls h= bar () again, not sure why the axis setting
isn't occurring along with it.
will be writing up xtest BISTs to capture these along with tests for bug
#65671. then will give these a look after that one's finished.
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: bar+horizotal_yaxistickslabels.PNG Size: 50KiB
<https://file.savannah.gnu.org/file/bar+horizotal_yaxistickslabels.PNG?file_id=56040>
-------------------------------------------------------
Name: bar+xdatachange.PNG Size: 42KiB
<https://file.savannah.gnu.org/file/bar+xdatachange.PNG?file_id=56041>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://git.savannah.nongnu.org/cgit/administration/savane.git/snapshot/savane-0329bc976c56c39d462c6cc5223a9b3c843a6486.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65734>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #65734] same bar plot updates don't properly update axes and labels,
Nicholas Jankowski <=