[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #60897] caxis affected by rectangle and patch
From: |
Ryan Gray |
Subject: |
[Octave-bug-tracker] [bug #60897] caxis affected by rectangle and patch graphic without scaled color |
Date: |
Fri, 9 Jul 2021 02:21:58 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36 |
URL:
<https://savannah.gnu.org/bugs/?60897>
Summary: caxis affected by rectangle and patch graphic
without scaled color
Project: GNU Octave
Submitted by: ryangray
Submitted on: Fri 09 Jul 2021 12:21:56 AM MDT
Category: Plotting
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Regression
Status: None
Assigned to: None
Originator Name:
Originator Email:
Open/Closed: Open
Release: 6.2.0
Discussion Lock: Any
Operating System: Microsoft Windows
_______________________________________________________
Details:
In Octave 6.1 and 6.2, adding a rectangle graphic to an imagesc plot, the
caxis limits are affected. In Octave 5.2, the limits are unaffected as it is
in MATLAB. I have not found anything that mentions this as an intentional
change. I have tested this on Windows.
>> figure; imagesc(rand(16)+1);
>> caxis
ans =
1.0020 1.9928
>> hold on; rectangle('position',[4 4 4 4]);
>> caxis
ans =
0 1.9928
I would expect the lower value to still be 1.0020.
Adding a patch graphic that doesn't use scaled color also affects the caxis
when it shouldn't.
>> figure; imagesc(rand(16)+1);
>> hold on; p = patch([1 4 4]',[1 1 4],'w','edgecolor','c');
>> caxis
ans =
0 1.9996
Interestingly, if we re-assert the cdata property as empty, it corrects the
caxis:
>> get(p,'cdata')
ans = [](0x0)
>> set(p,'cdata',[])
>> caxis
ans =
1.0003 1.9996
If the rectangle is being drawn with a patch, it's likely why the rectangle
has the same problem.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?60897>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #60897] caxis affected by rectangle and patch graphic without scaled color,
Ryan Gray <=