[Scilab-users] Changing properties of mark_mode polyline in param3d1

CRETE Denis denis.crete at thalesgroup.com
Fri Apr 29 18:09:32 CEST 2022


Hello,
This seems to work,
param3d1([1 2 3;1 2 3],[3 4 2;3 4 2], list([5 2 4;5 2 4], [-2 -3 -4]));
and then it is possible to change the colour of each “pair of data point”.

This is a bit simpler, but I did not try it:
param3d1([1 2 3;1 2 3],[3 4 2;3 4 2], [5 2 4;5 2 4]);

HTH
Denis

De : users <users-bounces at lists.scilab.org> De la part de Izabela Wójcik-Grzaba
Envoyé : vendredi 29 avril 2022 17:01
À : users at lists.scilab.org
Objet : Re: [Scilab-users] Changing properties of mark_mode polyline in param3d1


The problem is that my real plot is made with param3d1 and consists of different elements: polylines with line_mode, with mark_mode, xstrings. It is now impossible to change the type.

Kind regards,

Iza
---
Izabela Wójcik-Grząba
Zespół Konstrukcji Metalowych
ZKBiM IIB WIL Politechnika Warszawska



W dniu 29.04.2022 13:01, Stéphane Mottelet napisał(a):

Hello,

You should rather use scatter3d, which allows to give different colors to markers (and scale the color wrt a given color vector)

S.
Le 29/04/2022 à 12:49, Izabela Wójcik-Grząba a écrit :

Hello,

I have a simple example of param3d1 graph:

param3d1([1 2 3],[3 4 2],[5 2 4]);

h=gce();

h.line_mode="off";

h.mark_mode="on";

h.mark_sytle=9;

h.mark_size=1;

h.mark_foreground=13;

h.mark_background=13;

I would like to ask if it's possible to change properties of marks individually? My main goal is to change colors using colormap according to the values assigned to each mark (point on the graph). As an illustration of my problem I give a vector of values and colors for the 3 points:

[1 2 3]

[red green blue]

I know how to do it for line_mode="on", but for mark_mode the structure of figure is different.

Thanks in advance for any help. Regards,

Iza
--
Izabela Wójcik-Grząba
Zespół Konstrukcji Metalowych
ZKBiM IIB WIL Politechnika Warszawska



_______________________________________________

users mailing list

users at lists.scilab.org<mailto:users at lists.scilab.org>

http://lists.scilab.org/mailman/listinfo/users

--

Stéphane Mottelet

Ingénieur de recherche

EA 4297 Transformations Intégrées de la Matière Renouvelable

Département Génie des Procédés Industriels

Sorbonne Universités - Université de Technologie de Compiègne

CS 60319, 60203 Compiègne cedex

Tel : +33(0)344234688

http://www.utc.fr/~mottelet

_______________________________________________
users mailing list
users at lists.scilab.org<mailto:users at lists.scilab.org>
http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20220429/37454f10/attachment.htm>


More information about the users mailing list