<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>
<div><span style="color:#0000FF;">Hello Samuel and to all,</span></div>
<div> </div>
<div><span style="color:#0000FF;">thank you, Samuel, for the hint!</span></div>
<div><span style="color:#0000FF;">I have now an idea on how to proceed using this cdata_mapping. The problem is: when I use this command, error 144 ("Undefined operation for the given operands.") appears. What am I doing wrong this time? Man, It can be pretty annoying... :/ </span></div>
<div> </div>
<div><span style="color:#0000FF;">At surface_properties it says that the cdata_mapping command ist specific to fac3d handles. But this fac3d is obsolete. So I tried to plot my graph with the plot3d, plot3d1 and surf to see if any of this works, but no, they don't ...i keep getting this error mesage 144.</span></div>
<div> </div>
<div><span style="color:#0000FF;">Here are again the commands I am using:</span></div>
<div> </div>
<div>[fd,SST,Sheetnames,Sheetpos] = xls_open('E:\LI_messungen_alle.xls');<br/>
Sheets = readxls('E:\LI_messungen_alle.xls');<br/>
typeof(Sheets);<br/>
s1=Sheets(1);<br/>
data=s1.value;<br/>
x=data(1,2:8);<br/>
y=data(2:8,1);<br/>
z=data(2:8,2:8);<br/>
xx = linspace(0,200,200);<br/>
yy = linspace(0,150,200);<br/>
[xp,yp] = ndgrid(xx,yy);<br/>
zp = linear_interpn(xp,yp, x, y, z);<br/>
clf()<br/>
surf(xx,yy,zp)<br/>
e=gce<br/>
e.cdata_mapping='direct'</div>
<div>e.color_map=jetcolormap(512);<br/>
e.color_flag=2;<br/>
e.data.color=[1+modulo(1:1300,512),1+modulo(1:1300,512)];<br/>
h.color_flag=3;<br/>
colorbar(1,1300)</div>
<div> </div>
<div><span style="color:#0000FF;">And this is, again, my table:</span></div>
<div> </div>
<div>Nan 0. 20. 60. 100. 140. 180. 200. <br/>
0. Nan 0. Nan Nan Nan Nan Nan <br/>
5. Nan 68. 73. 61. 63. 67. Nan <br/>
40. Nan 17. 9. 10. 12. 17. Nan <br/>
75. Nan 14. 7. 6. 6. 12. Nan <br/>
110. Nan 15. 6. 4. 6. 21. Nan <br/>
145. Nan 21. 28. 26. 20. 34. Nan <br/>
150. Nan Nan Nan Nan Nan Nan Nan </div>
<div>
<div> </div>
<div><span style="color:#0000FF;">Do you have any idea of what is wrong?</span></div>
<div><span style="color:#0000FF;">Thank you again,</span></div>
<div><span style="color:#0000FF;">Larissa</span></div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div> </div>
<div name="quote" style="margin:10px 5px 5px 10px; padding: 10px 0 10px 10px; border-left:2px solid #C3D9E5; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
<div style="margin:0 0 10px 0;"><b>Gesendet:</b> Dienstag, 23. Juli 2013 um 03:37 Uhr<br/>
<b>Von:</b> "Samuel Gougeon" <sgougeon@free.fr><br/>
<b>An:</b> "International users mailing list for Scilab." <users@lists.scilab.org><br/>
<b>Betreff:</b> Re: [Scilab-users] Colorbar_same color code, different graphs</div>
<div name="quoted-content">Hello Larissa,<br/>
<br/>
After surf(..), you may do<br/>
e = gce();<br/>
e.cdata_mapping = 'direct';<br/>
// and have a look at<br/>
help "surface properties"<br/>
<br/>
HTH<br/>
Samuel<br/>
_______________________________________________<br/>
users mailing list<br/>
users@lists.scilab.org<br/>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_blank">http://lists.scilab.org/mailman/listinfo/users</a></div>
</div>
</div>
</div></div></body></html>