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

Izabela Wójcik-Grząba iwoj at il.pw.edu.pl
Mon May 2 11:48:10 CEST 2022


Hi, 

Thank you all for the answers. Problem is solved thanks to matrix with
color indexes. Earlier I thought about changing color of each point with
the use of "for" loop and that's why I didn't think about the simplest
solution which is the matrix. 

Kind regards, 

Iza

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

W dniu 01.05.2022 23:09, P M napisał(a):

> Hello, 
> 
> are you bound to param3d1 or can you use scatter3d instead? 
> 
> scatter3d([1 2 3],[3 4 2],[5 2 4],36,['red1' 'green1' 'blue1'],'fill');
> a = gca();
> a.data_bounds = [0,0,0;7,7,7];
> 
> BR
> 
> Philipp
> 
> Am Fr., 29. Apr. 2022 um 12:57 Uhr schrieb Izabela Wójcik-Grząba <iwoj at il.pw.edu.pl>: 
> 
>> 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
>> http://lists.scilab.org/mailman/listinfo/users
> 
> _______________________________________________
> users mailing list
> 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/20220502/1c73512b/attachment.htm>


More information about the users mailing list