<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><span>Dear Scilab users,</span></div><div><span></span> </div><div><span>I would like to draw Y-axis in a graph, but it does not display !</span></div><div><span></span> </div><div><span>See the Scilab-codes:</span></div><div><span><span style="color: rgb(0, 0, 0);"><font color="#b01813"></font></span></span> </div><span><span style="color: rgb(0, 0, 0);"><pre style="font-family: Monospaced; font-style: normal;"><span style="color: rgb(176, 24, 19);">function</span> <span style="color: rgb(131, 67, 16); font-weight: bold;">f</span><span style="color: rgb(92, 92, 92);">=</span><span style="color: rgb(0, 0, 0); text-decoration: underline;">funcao</span><span style="color: rgb(74, 85, 219);">(</span><span style="color: rgb(131, 67, 16); font-weight: bold;">x</span><span style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(131, 67, 16); font-weight: bold;">f</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(131, 67, 16); font-weight: bold;">x</span><span style="color: rgb(92, 92, 92);">*</span><span style="color: rgb(50, 185, 185);">exp</span><span style="color: rgb(74, 85, 219);">(</span><span style="color: rgb(92, 92, 92);">-</span><span style="color: rgb(131, 67, 16); font-weight: bold;">x</span><span style="color: rgb(92, 92, 92);">^</span><span style="color: rgb(188, 143, 143);">2</span><span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span>
<span style="color: rgb(176, 24, 19);">endfunction</span>
<span style="color: rgb(0, 0, 0);">x_inicial</span> <span style="color: rgb(92, 92, 92);">=</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);">x_final</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);">xdata</span> <span style="color: rgb(92, 92, 92);">=</span> <span style="color: rgb(174, 92, 176); text-decoration: underline;">linspace</span> <span style="color: rgb(74, 85, 219);">(</span> <span style="color: rgb(0, 0, 0);">x_inicial</span> <span style="color: rgb(0, 0, 0);">,</span> <span style="color: rgb(0, 0, 0);">x_final</span><span style="color: rgb(0, 0, 0);">,</span> <span style="color: rgb(188, 143, 143);">100</span><span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span>
<span style="color: rgb(0, 0, 0);">y_inicial</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.0</span><span style="color: rgb(0, 0, 0);">;</span>
<span style="color: rgb(0, 0, 0);">y_final</span> <span style="color: rgb(92, 92, 92);">=</span> <span style="color: rgb(188, 143, 143);">1.0</span><span style="color: rgb(0, 0, 0);">;</span>
<span style="color: rgb(174, 92, 176); text-decoration: underline;">plot</span> <span style="color: rgb(74, 85, 219);">(</span><span style="color: rgb(0, 0, 0);">xdata</span><span style="color: rgb(0, 0, 0);">,</span> <span style="color: rgb(0, 0, 0); text-decoration: underline;">funcao</span><span style="color: rgb(74, 85, 219);">)</span>
<span style="color: rgb(50, 185, 185);">xtitle</span> <span style="color: rgb(74, 85, 219);">(</span> <span style="color: rgb(188, 143, 143);">"</span><span style="color: rgb(188, 143, 143);">Função</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);">X axis </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);">Y axis </span><span style="color: rgb(188, 143, 143);">"</span> <span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span>
<span style="color: rgb(50, 185, 185);">drawaxis</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);">x_inicial</span><span style="color: rgb(255, 170, 0);">:</span><span style="color: rgb(0, 0, 0);">x_final</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">y</span><span style="color: rgb(92, 92, 92);">=</span><span style="color: rgb(188, 143, 143);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(174, 92, 176); text-decoration: underline;">dir</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(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">tics</span><span style="color: rgb(92, 92,
92);">=</span><span style="color: rgb(188, 143, 143);">'</span><span style="color: rgb(188, 143, 143);">v</span><span style="color: rgb(188, 143, 143);">'</span><span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span> <span style="color: rgb(1, 168, 1); font-style: italic;">//Here X-axis displays</span>
<span style="color: rgb(50, 185, 185);">drawaxis</span><span style="color: rgb(74, 85, 219);">(</span><span style="color: rgb(0, 0, 0);">y</span><span style="color: rgb(92, 92, 92);">=</span><span style="color: rgb(0, 0, 0);">y_inicial</span><span style="color: rgb(255, 170, 0);">:</span><span style="color: rgb(0, 0, 0);">y_final</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(188, 143, 143);">0</span><span style="color: rgb(0, 0, 0);">,</span><span style="color: rgb(174, 92, 176); text-decoration: underline;">dir</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(0, 0, 0);">,</span><span style="color: rgb(0, 0, 0);">tics</span><span style="color: rgb(92, 92,
92);">=</span><span style="color: rgb(188, 143, 143);">'</span><span style="color: rgb(188, 143, 143);">v</span><span style="color: rgb(188, 143, 143);">'</span><span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span> <span style="color: rgb(1, 168, 1); font-style: italic;">// I try to do the same, but Y-axis does not display :-(((</span>
<span style="color: rgb(174, 92, 176); text-decoration: underline;">legend</span> <span style="color: rgb(74, 85, 219);">(</span> <span style="color: rgb(188, 143, 143);">"</span><span style="color: rgb(188, 143, 143);">2*x*exp(-x^2)</span><span style="color: rgb(188, 143, 143);">"</span> <span style="color: rgb(74, 85, 219);">)</span><span style="color: rgb(0, 0, 0);">;</span></span></span><span><span style="color: rgb(0, 0, 0);"><font color="#000000">I appreciate your comments.</font></span></span></pre><pre style="font-family: Monospaced; font-style: normal;"><span><span style="color: rgb(0, 0, 0);">Thank you in advance.</span></span></pre><pre style="font-family: Monospaced; font-style: normal;"><span><span style="color: rgb(0, 0, 0);">All best,</span></span></pre><pre style="font-family: Monospaced; font-style: normal;"><span><span style="color: rgb(0, 0, 0);">Reinaldo.</span></pre></span></div></body></html>