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"><<a href="mailto:marcus.hanwell@kitware.com">marcus.hanwell@kitware.com</a>></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>
<<a href="mailto:prakeshofficial@gmail.com">prakeshofficial@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I am using vtkChartXY for plotting XY graphs. Everything is working fine.<br>
><br>
> As of now, the ranges for X and Y axis as taken automatically based on the<br>
> input data.<br>
><br>
> Suppose the automatically computed range is say, (0 - 40), now user wishes<br>
> to see the data between 20 to 25. How can I set this range? I tried using<br>
> SetRange function. It doesn't show any changes.<br>
><br>
> Is there any indirect way to do this other then feeding the input array with<br>
> values between 20 to 25.??<br>
><br>
</div></div>The axis will be rescaled unless you set the behavior to fixed,<br>
axis->SetBehavior(vtkAxis::FIXED).<br>
<span class="HOEnZb"><font color="#888888"><br>
Marcus<br>
</font></span></blockquote></div><br>