Thanks Jothy and 
<span style>Marcus. I was able to solve it with SetBehavior() function.</span><br><br><div class="gmail_quote">On Sun, Mar 11, 2012 at 11:30 PM, Marcus D. Hanwell <span dir="ltr">&lt;<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Sat, Mar 10, 2012 at 12:55 AM, rakesh patil<br>
&lt;<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I am using vtkChartXY for plotting XY graphs. Everything is working fine.<br>
&gt;<br>
&gt; As of now, the ranges for X and Y axis as taken automatically based on the<br>
&gt; input data.<br>
&gt;<br>
&gt; Suppose the automatically computed range is say, (0 - 40), now user wishes<br>
&gt; to see the data between 20 to 25. How can I set this range? I tried using<br>
&gt; SetRange function. It doesn&#39;t show any changes.<br>
&gt;<br>
&gt; Is there any indirect way to do this other then feeding the input array with<br>
&gt; values between 20 to 25.??<br>
&gt;<br>
</div></div>The axis will be rescaled unless you set the behavior to fixed,<br>
axis-&gt;SetBehavior(vtkAxis::FIXED).<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span></blockquote></div><br>