<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Le 28/02/2013 22:55, Laurent Berger a
écrit :<br>
</div>
<blockquote
cite="mid:20130228225505.83676us1w82cthgk@entmail1.univ-lemans.fr"
type="cite">.../...<br>
Donc comment faire?
<br>
</blockquote>
<br>
- Eviter la multiplication des variables intermédiaires très
encombrantes<br>
- Se souvenir que le contenu de Matplot est interprété comme des
indices<br>
de couleurs dans la palette de la fenêtre graphique.<br>
:<br>
<pre style="font-family:Monospaced;font-style:normal;font-size:13.0;"><big><span style="color:rgb(50,185,185);">stacksize</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">4e7</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">gstacksize</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">4e7</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">n</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">10</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">n </span><span style="color:rgb(92,92,92);">= </span><span style="color:rgb(188,143,143);">11</span> <span style="color:rgb(100,174,100);font-style:italic;">// que des problèmes</span>
<span style="color:rgb(0,0,0);">nbl</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(92,92,92);">^</span><span style="color:rgb(0,0,0);">n</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">nbc</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">2</span><span style="color:rgb(92,92,92);">^</span><span style="color:rgb(0,0,0);">n</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">yc</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">nbl</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">xc</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">nbc</span><span style="color:rgb(92,92,92);">/</span><span style="color:rgb(188,143,143);">2</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">x</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">zeros</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">nbl</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(0,0,0);">nbc</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">x</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(188,143,143);">1</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">nbl</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">1</span><span style="color:rgb(255,170,0);">:</span><span style="color:rgb(0,0,0);">nbc</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">x</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(50,185,185);">abs</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">yc</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(92,92,92);">+</span><span style="color:rgb(50,185,185);">abs</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(92,92,92);">'</span><span style="color:rgb(92,92,92);">-</span><span style="color:rgb(0,0,0);">xc</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;">clf</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;">gcf</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(50,185,185);">rand</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">256</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">3</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(50,185,185);">Matplot</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(174,92,176);text-decoration:underline;">pmodulo</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(0,0,0);">x</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">256</span><span style="color:rgb(74,85,219);">)</span><span style="color:rgb(74,85,219);">)</span></big></pre>
<img src="cid:part1.04060706.02010301@free.fr" alt=""><br>
<br>
Samuel<br>
<br>
</body>
</html>