<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Bonjour à tous et merci pour votre
aide,<br>
<br>
les dernières réponses m'ont aider à résoudre mon problème.<br>
<br>
je fais un retour des solutions pour ceux que ça intéresse<br>
<br>
concernant l'affichage de la matrice sous forme de surface, j'ai
utilisé le programme suivant<br>
<br>
<blockquote type="cite">
<pre style="font-family:Monospaced;font-style:normal;font-size:19.0;"><span style="color:rgb(0,0,0);">f</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">scf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">f</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_map</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(174,92,176);text-decoration:underline;">jetcolormap</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">256</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">surf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(92,92,92);">'</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">colorbar</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">round</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,9!
2);">-<s
pan style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">fmt</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">%d</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">ax</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(174,92,176);text-decoration:underline;">gca</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">view</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">2d</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">isoview</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">on</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// objet correspondant `a la surface</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">children</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// aretes non visibles</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_mode</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// interpolation des couleurs pour chaque face</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_flag</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">;</span></span></pre>
</blockquote>
<br>
concernant l'interpolation sur une grille plus régulière, j'ai
suivi la démarche suivante,<br>
<br>
tout d'abord, interpolation sur la grille<br>
<blockquote type="cite">
<pre style="font-family:Monospaced;font-style:normal;font-size:19.0;"><span style="color:rgb(100,174,100);font-style:italic;">// interpolation sur grille réguliere</span>
<span style="color:rgb(0,0,0);">M</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(92,92,92);">'</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">xyz</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(0,0,0);">M</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">tl_coef</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">cshep2d</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">xyz</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">i</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">320</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(50,185,185);">max</span><span style="co!
lor:rgb(
74,85,219);">(</span><span style="color:rgb(0,0,0);">matX</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">j</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">240</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(50,185,185);">max</span><span style="co!
lor:rgb(
74,85,219);">(</span><span style="color:rgb(0,0,0);">matY</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(74,85,219);">[</span><span style="color:rgb(0,0,0);">I</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">J</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">meshgrid</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">i</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">j</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">Data</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">eval_cshep2d</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">I</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">J</span><span style="color:rgb(0,0,0);">,</span> <span style="color:rgb(0,0,0);">tl_coef</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span></pre>
</blockquote>
puis affichage<br>
<br>
<br>
<blockquote type="cite">
<pre style="font-family:Monospaced;font-style:normal;font-size:19.0;"><span style="color:rgb(100,174,100);font-style:italic;">// puis affichage</span>
<span style="color:rgb(0,0,0);">f</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(174,92,176);text-decoration:underline;">scf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">f</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_map</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(174,92,176);text-decoration:underline;">jetcolormap</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">256</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">surf</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">I</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">J</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">Data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(174,92,176);text-decoration:underline;">colorbar</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(74,85,219);">[</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(50,185,185);">round</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(50,185,185);">max</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,9!
2);">-<s
pan style="color:rgb(50,185,185);">min</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">data</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">]</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">fmt</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(188,143,143);">%d</span><span style="color:rgb(188,143,143);">'</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(0,0,0);">ax</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(174,92,176);text-decoration:underline;">gca</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">view</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">2d</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">isoview</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">on</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// objet correspondant `a la surface</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">ax</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">children</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// aretes non visibles</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_mode</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);font-style:italic;">// interpolation des couleurs pour chaque face</span>
<span style="color:rgb(0,0,0);">s</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">color_flag</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(0,0,0);">;</span></span></pre>
</blockquote>
<br>
j'ai un petit soucis ici au niveau de la colorbar, j’aimerai que
les couleurs soient les mêmes sur mes deux figures<br>
cependant l'interpolation engendre des erreurs sur les bords de la
matrice, qui fausse mon échelle dans la seconde figure<br>
<br>
Antoine<br>
<br>
Le 07/03/2014 22:56, <a class="moz-txt-link-abbreviated" href="mailto:sgougeon@free.fr">sgougeon@free.fr</a> a écrit :<br>
</div>
<blockquote
cite="mid:977881639.1063527843.1394229389808.JavaMail.root@zimbra75-e12.priv.proxad.net"
type="cite">
<pre wrap="">surf(X,Y,M);
ax = gca();
ax.view = "2d";
// > il faut que les échelles sur x et y soient les mêmes (pas de déformation de l'image).
// Pour ça, ajouter :
ax.isoview = "on";
_______________________________________________
users-fr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users-fr@lists.scilab.org">users-fr@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users-fr">http://lists.scilab.org/mailman/listinfo/users-fr</a>
</pre>
</blockquote>
<br>
</body>
</html>