<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 11pt; font-family: "Book Antiqua",Palatino,serif'>
<p>Hello,</p>
<p>I need some help with a param3d1 graph. Each polyline should have color from a colormap according to the value assigned in a T vector. Here is a simple example (not finished):</p>
<p><span style="font-family: courier new, courier, monospace;">X=[0.5 1.5 1.5 ; 1.5 2.5 1.5];</span></p>
<p><span style="font-family: courier new, courier, monospace;">Y=[0.5 1 1 ; 1 0.5 2];</span></p>
<p><span style="font-family: courier new, courier, monospace;">Z=[0 1 1 ; 1 2 3];</span></p>
<p><span style="font-family: courier new, courier, monospace;">T=[2 1 3];</span></p>
<p><span style="font-family: courier new, courier, monospace;">[sorted_T, index_sort_T]=gsort(T , 'g' , 'i');</span></p>
<p><span style="font-family: courier new, courier, monospace;">colors=zeros(size(T , 'r');</span></p>
<p><span style="font-family: courier new, courier, monospace;">colors(index_sort_T , :)=jetcolormap(size(T , 'r');</span></p>
<p><span style="font-family: courier new, courier, monospace;">param3d1(X,Y,Z);</span></p>
<p><span style="font-family: courier new, courier, monospace;">h=gca().children(1);</span></p>
<p><span style="font-family: courier new, courier, monospace;">h.children.thickness=4;</span></p>
<p><span style="font-family: courier new, courier, monospace;">for i=size(T,'r')</span></p>
<p><span style="font-family: courier new, courier, monospace;">h.children(i).color=???</span></p>
<p><span style="font-family: courier new, courier, monospace;">end</span></p>
<p>Instead of question marks there should be a color index, but I don't know how to define it using jetcolormap.</p>
<p>I would be grateful for your kind help,</p>
<div id="signature">-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace"><span style="font-family: book antiqua, palatino, serif;">Izabela Wójcik-Grząba</span><br /><span style="font-family: book antiqua, palatino, serif;">Zespół Konstrukcji Metalowych</span><br /><span style="font-family: book antiqua, palatino, serif;">ZKBiM IIB WIL Politechnika Warszawska</span><br /><br /></div>
</div>
</body></html>