<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">Hello P M <br>
(Prime Minister ?)<br>
<br>
Le 25/02/2019 à 17:10, P M a écrit :<br>
</div>
<blockquote
cite="mid:CACf7ODs+xNDUo0PqMve7cHPwuRTCbOEhQeq5TNZ=OKoZNXtSBA@mail.gmail.com"
type="cite">
<div dir="ltr">
<div dir="ltr">
<div>
<div>
<div>
<div>
<div>Dear all,<br>
<br>
</div>
I am building a figure with 4 subplots.<br>
<br>
</div>
Now since I want to have a title in the figure I can use
several options to set a title on the figure.<br>
<br>
</div>
Currently I use <br>
<br>
</div>
<div>subplot(221);<br>
</div>
plot(...)<br>
</div>
a1 = gca();<br>
</div>
<div>a1.title.Text = "my title";<br>
<br>
</div>
<div dir="ltr">
<pre style="font-family:Monospaced;font-style:normal"><font size="2"><span style="font-family:arial,helvetica,sans-serif"><span style="color:rgb(0,0,0)">However so far I understand, the title position is somehow bound to the axis settings.</span></span></font><span style="color:rgb(0,0,0)"><font size="2"><span style="font-family:arial narrow,sans-serif"><span style="font-family:arial,helvetica,sans-serif">
such as: if xmin xMax yMin yMax are changing the position of the title also changes</span>.</span></font>
</span></pre>
<pre style="font-family:Monospaced;font-style:normal"><span style="color:rgb(74,85,219)"></span></pre>
Now: I need to have the title position independend of the axis
settings.<br>
</div>
</div>
</blockquote>
<br>
What do you mean? The position of the title can be explicitly set
with<br>
<tt><br>
title("My title", "position",[xtitle, ytitle])</tt><br>
<br>
where the coordinates [xtitle, ytitle] are given in data scale.<br>
<br>
Using this, <tt>a1.title.auto_position</tt> is turned <tt>"off"</tt>,
and the position that you set should remain independent of any
changes of data bounds.<br>
Isn't it the case?<br>
<br>
HTH<br>
Samuel<br>
<br>
</body>
</html>