<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Hi Raghu,<br>
<br>
You need to retrieve the axes of the second plot thanks to the
children of gcf().<br>
<br>
Here is how I did it, based on your snippet:<br>
<br>
function set_gr_txt(fnt_sz)<br>
// sets textize in plots to larger (4)<br>
// [out, inp] = argn(0);<br>
// //if inp < 1 then, x = 1, end //set default font size to 1<br>
<br>
f = gcf();<br>
<br>
a1 = f.children(1);<br>
if ~exists("fnt_sz","local") then // default size<br>
fnt_sz = 4;<br>
end<br>
a1.font_size = 4; // axis font size<br>
x_label=a1.x_label;<br>
x_label.font_size=fnt_sz;<br>
y_label=a1.y_label;<br>
y_label.font_size=fnt_sz;<br>
t = a1.title;<br>
t.font_size=fnt_sz;<br>
//disp(is_handle_valid(a1),typeof(h),'typeof handle');<br>
<br>
a2 = f.children(2);<br>
if ~exists("fnt_sz","local") then // default size<br>
fnt_sz = 4;<br>
end<br>
a2.font_size = 4; // axis font size<br>
x_label=a2.x_label;<br>
x_label.font_size=fnt_sz;<br>
y_label=a2.y_label;<br>
y_label.font_size=fnt_sz;<br>
t = a2.title;<br>
t.font_size=fnt_sz;<br>
//disp(is_handle_valid(a2),typeof(h),'typeof handle');<br>
<br>
endfunction<br>
<br>
// Execution:<br>
bode()<br>
set_gr_txt(4)<br>
<br>
Regards,<br>
Paul<br>
<br>
<br>
<div class="moz-cite-prefix">On 06/11/2014 08:17 AM, Raghu Char
wrote:<br>
</div>
<blockquote cite="mid:op.xg903ckx6ce2eg@rc-pc" type="cite">
<style type="text/css">body { font-family:'Times New Roman'; font-size:17px}</style>
<div>List,</div>
<div><br>
</div>
<div>I'd like to increase the font size of the bode plot( jpeg
attached), i have a function to do this </div>
<div>but as there are 2 figures it works only on 1, could not
find any help on this, how do i do this?</div>
<div><br>
</div>
<div><br>
</div>
<div>code snippet:</div>
<div>
<pre style="font-family:Lucida Console;font-style:normal;font-size:18.0;"><span style="color:rgb(176,24,19);">function</span> <span style="color:rgb(131,67,16);">y</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);text-decoration:underline;">set_gr_txt</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(131,67,16);">fnt_sz</span><span style="color:rgb(74,85,219);">)</span>
<span style="color:rgb(100,174,100);">// sets textize in plots to larger (4)</span>
<span style="color:rgb(100,174,100);">// [out, inp] = argn(0);</span>
<span style="color:rgb(100,174,100);">// //if inp </span><span style="color:rgb(100,174,100);"><</span><span style="color:rgb(100,174,100);"> 1 then, x = 1, end //set default font size to 1</span>
<span style="color:rgb(0,0,0);">a</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(160,32,240);">if</span> <span style="color:rgb(92,92,92);">~</span><span style="color:rgb(50,185,185);">exists</span><span style="color:rgb(74,85,219);">(</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">fnt_sz</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(0,0,0);">,</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(188,143,143);">local</span><span style="color:rgb(188,143,143);">"</span><span style="color:rgb(74,85,219);">)</span> <span style="color:rgb(160,32,240);">then</span> <span style="color:rgb(100,174,100);">// default size</span>
<span style="color:rgb(131,67,16);">fnt_sz</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">4</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(160,32,240);">end</span>
<span style="color:rgb(0,0,0);">a</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">font_size</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(188,143,143);">4</span><span style="color:rgb(0,0,0);">;</span> <span style="color:rgb(100,174,100);">// axis font size</span>
<span style="color:rgb(0,0,0);">x_label</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">a</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">x_label</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">x_label</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">font_size</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);">fnt_sz</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">y_label</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(0,0,0);">a</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">y_label</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">y_label</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">font_size</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);">fnt_sz</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">t</span> <span style="color:rgb(92,92,92);">=</span> <span style="color:rgb(0,0,0);">a</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">title</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(0,0,0);">t</span><span style="color:rgb(92,92,92);">.</span><span style="color:rgb(170,170,170);">font_size</span><span style="color:rgb(92,92,92);">=</span><span style="color:rgb(131,67,16);">fnt_sz</span><span style="color:rgb(0,0,0);">;</span>
<span style="color:rgb(100,174,100);">//disp(is_handle_valid(a),typeof(h),</span><span style="color:rgb(100,174,100);">'</span><span style="color:rgb(100,174,100);">typeof handle</span><span style="color:rgb(100,174,100);">'</span><span style="color:rgb(100,174,100);">);</span>
<span style="color:rgb(176,24,19);">endfunction</span></pre>
</div>
<div><br>
</div>
<div>thanx in advance.</div>
<div><br>
<br>
</div>
<div id="M2Signature">
<div>-- </div>
<div>
<div>Regards raghu</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Paul BIGNIER
Development engineer
-----------------------------------------------------------
Scilab Enterprises
143bis rue Yves Le Coz - 78000 Versailles, France
Phone: +33.1.80.77.04.69
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a> </pre>
</body>
</html>