unlike plot2d(), param3d1() builds different graphical hierarchies for only one vs for several curves
@sgougeon)
Reported by Samuel GOUGEON (BUG DESCRIPTION:
----------------
For plot2d(), the built hierarchy does not depend on the plotted number curves:
--> plot2d(1:10) // ONLY ONE CURVE
--> gce()
ans =
Handle of type "Compound" with properties:
==========================================
parent: Axes
children: "Polyline" // ALREADY IN A COMPOUND
visible = "on"
user_data = []
tag = ""
--> clf reset, plot2d([1:10 ; 1:10]') // TWO CURVES
--> gce()
ans =
Handle of type "Compound" with properties:
==========================================
parent: Axes
children: ["Polyline";"Polyline"] // IN A COMPOUND at the same level
visible = "on"
user_data = []
tag = ""
With param3d1():
===============
--> [X, Y] = ndgrid(-11:0.5:9);
--> R = sqrt(X.*X + Y.*Y) + %eps;
--> Z = sin(R)./R;
--> param3d1(X, Y, Z, 150, 85, flag=[2,4]); // N>1 curves
--> gce()
ans =
Handle of type "Compound" with properties:
==========================================
parent: Axes
children: matrix 41x1 // OK
visible = "on"
user_data = []
tag = ""
--> param3d1(X(:,1), Y(:,1), Z(:,1), 150, 85, flag=[2,4]); // Only one curve
--> gce()
ans =
Handle of type "Polyline" with properties: <<<<<<<<< BUG: COMPOUND expected
==========================================
parent: Axes
children: [] <<<<< polyline expected as a child
datatips: []
datatip_display_mode: "always"
display_function = ""
ERROR LOG:
----------
none. Wrong graphical hierarchy
HOW TO REPRODUCE THE BUG:
-------------------------
From the third example of param3d1 page:
[X, Y] = ndgrid(-11:0.5:9);
R = sqrt(X.*X + Y.*Y) + %eps;
Z = sin(R)./R;
param3d1(X, Y, Z, 150, 85, flag=[2,4]);
gce()
param3d1(X(:,1), Y(:,1), Z(:,1), 150, 85, flag=[2,4]);
gce()
OTHER INFORMATION:
------------------
Initially reported on the mailing list @
https://www.mail-archive.com/users@lists.scilab.org/msg07687.html
Edited by Vincent COUVERT