<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<title></title>
</head>
<body text="#000000" bgcolor="#ffffff">
Le 25/05/2011 22:27, CHEZE David 227480 a écrit :
<blockquote
cite="mid:D0FE4A0F7910F4499DBC0FB25772F46498C0A2@TAIPEI.intra.cea.fr"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 14 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri","sans-serif";
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri","sans-serif";
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-US">hi,<br>
<br>
i would like to force the upper and lower bounds of color
scale in a surface plot (not automatic min/max adjustment):
for quick visual comparison between multiple plots, with the
same reference but min max value that can vary over a wide
range of values. Is it possible to do it through a dedicated
functions rather than by inserting artificial min max values
in the data that i want to plot ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">for example I have an
array A of value ranging from 0 to 10 and and another from
0 to 1000 : if I plot this 2 sets of values in 2 different
plots, color related to 10 in A-plot and related to 1000 in
B-plot is the same for a given colormap. I would like to
force the colormap ‘scale’ of B-plot to these of A-plot.<br>
<br>
Thanks for your help,<br>
<br>
David<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
</div>
</blockquote>
Hello,<br>
<br>
what you want to do is very easy with the plotlib, here is an
example :<br>
<br>
A=2*rand(10,10);<br>
B=rand(10,10);<br>
subplot(2,1,1);<br>
pcolor(A);<br>
caxis([0,2]);<br>
colorbar;<br>
<br>
subplot(2,1,2)<br>
pcolor(B);<br>
caxis([0,2]);<br>
colorbar;<br>
<br>
To install the plotlib :<br>
<br>
atomsInstall('plotlib');<br>
<br>
S.<br>
<br>
</body>
</html>