Thank you for your answer, but here all the polylines have the same
properties. The problem is when there is only one polyline because the
levels structure of figure properties are different then in the case of
multiple polylines.
But, as there is no other idea, I will stick with my "if" clause
Then the following 'if' clause might be preferable, especially if you have many
properties to change:
if size(X,2)==1 then
X = [X X];
Y = [Y Y];
Z = [Z Z];
end
param3d1(X,Y,Z);
gce().children.polyline_style=4;
gce().children.thickness=2;
gce().children.foreground=32;
etc...
Regards,
Thank you. It's quite a good idea. Shorter than mine, for sure.
Iza
W dniu 19.07.2018 12:49, Rafael Guerra napisał(a):
Then the following 'if' clause might be preferable, especially if you
have many properties to change:
if size(X,2)==1 then
X = [X X];
Y = [Y Y];
Z = [Z Z];
end
Hi all,
I have another problem. In my program I create an initial plot which is
a basis for the input implemented by x_mdialog command. The problem is
that when the x_mdialog window pops up the figure window bocomes
inactive. It means that I can't zoom or rotate the plot which is
necessary to
Hi Rafael,
Thank you very much. This code is great, but I don't know how to use
datatipManagerMode when my param3d plot is in the frame inside the
graphic window. It seems that it's not working in such situation.
Regards,
Iza
___
users mailing list
Hello Izabela,
What you wish to do is not possible with x_mdialog(), that is a modal
dialog: it pauses everything else until the dialog is quit.
To do what you want, it's possible to create your own dialog box based
on uicontrol("style", "edit") or other interactive components.
Basically, yo
Le 18/07/2018 à 15:19, Izabela Wójcik-Grząba a écrit :
Hello,
I am looking for an elegant and simple way to manage with changing
properties of polylines in a param3d1 plot. The problem is that
sometimes (in case of specific data) there is only one polyline to
draw but in most cases there are
Le 19/07/2018 à 21:30, Samuel Gougeon a écrit :
.../...
param3d1(X,Y,Z);
c = gce();
if size(X,"c")>1, c = c.children; end
c.polyline_style = 4;
c.thickness = 2;
c.foreground = 32;
The last 3 lines should be replaceable with simply
set(c, "polyline_style", 4, "thickness", 2, "foreground", 32);
Le 19/07/2018 à 21:30, Samuel Gougeon a écrit :
Le 18/07/2018 à 15:19, Izabela Wójcik-Grząba a écrit :
Hello,
I am looking for an elegant and simple way to manage with changing
properties of polylines in a param3d1 plot. The problem is that
sometimes (in case of specific data) there is only o