[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #65363] fill3 alters the graphic already with
From: |
Liang Tang |
Subject: |
[Octave-bug-tracker] [bug #65363] fill3 alters the graphic already with hold-on. |
Date: |
Sat, 24 Feb 2024 18:20:29 -0500 (EST) |
URL:
<https://savannah.gnu.org/bugs/?65363>
Summary: fill3 alters the graphic already with hold-on.
Group: GNU Octave
Submitter: lt1234
Submitted: Sat 24 Feb 2024 11:20:28 PM UTC
Category: Octave Function
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: Incorrect Result
Status: None
Assigned to: None
Originator Name: lt1234
Originator Email:
Open/Closed: Open
Release: 8.2.0
Discussion Lock: Any
Operating System: Microsoft Windows
Fixed Release: None
Planned Release: None
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Sat 24 Feb 2024 11:20:28 PM UTC By: Liang Tang <lt1234>
Hi,
I observed what below with fill3. Therefore, I reported specifically for
fill3 only. Ihis issue is also a matlab compatibility issue.
In the example, the same data, P, are displayed with patch and fill3
respectively in subplots 1 and 2. The resulting overall displays from the two
functions are different.
The patch and fill3 subplots , with different view, [0 90] and [-37.5 30], are
incompatible with matlab, both [0 90]. Octave fill3 must have triggered new
camera parameters, while the patch and fill3 defined by P occupy the same
space. I did not find any documentation to indicate the two functions should
be different in updating display with hold-on. Therefore, I expect the two
subplots to be identical.
The small example demonstrates the fill3 compatibility issue:
% both CCW order P0 is estimated from plane_1=@(x) [1 2 3 ]*x-06;
P0=[6 3 -4
0 -2 -4
0 -6 6
6 -6 3];
% an arbitrary rectangle
P=[...
2.2136 1.8866 2.4160
1.5450 2.8580 0.1131
-0.9062 1.1710 0.1131
-0.2377 0.1995 2.4160];
figure;
ax1=subplot(1,2,1);
patch(ax1,P0(:,1), P0(:,2), P0(:,3), 'r'); hold on; xlabel('x'); ylabel('y');
title('patch')
patch(ax1,P(:,1), P( :,2), P( :,3), 'c'); % subplot(1,2,1); ; view([-37.5
30]);
ax2=subplot(1,2,2);
patch(ax2,P0(:,1), P0(:,2), P0(:,3), 'r'); hold on; xlabel('x'); ylabel('y');
title('fill3')
fill3(ax2,P( :,1), P( :,2), P( :,3), 'c'); % subplot(1,2,2); ; view([0 90]);
saveas(gcf, 'patch_fill3.ofig');
subplot(1,2,1); a1=get(gca); subplot(1,2,2); a2=get(gca);
[a1.view; a2.view]
[a1.cameratarget; a2.cameratarget]
[a1.cameraposition; a2.cameraposition]
_______________________________________________________
File Attachments:
-------------------------------------------------------
Name: patch_fill3.zip Size: 7KiB
<http://savannah.gnu.org/bugs/download.php?file_id=55744>
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-fd9b348a8fcb146b565f753e2f7db1ab857a7bf6.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65363>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #65363] fill3 alters the graphic already with hold-on.,
Liang Tang <=