[vtkusers] How to set range for axis in vtkCharts?

Jothy jothybasu at gmail.com
Sun Mar 11 07:03:56 EDT 2012


You also need to set SetBehaviour()

I am not sure whether it's 1 or 0. Look at the docs

Jothy


On 10-Mar-2012, at 5:55 AM, rakesh patil <prakeshofficial at gmail.com> wrote:

> Hi,
> 
> I am using vtkChartXY for plotting XY graphs. Everything is working fine.
> 
> As of now, the ranges for X and Y axis as taken automatically based on the input data. 
> 
> Suppose the automatically computed range is say, (0 - 40), now user wishes to see the data between 20 to 25. How can I set this range? I tried using SetRange function. It doesn't show any changes. 
> 
> Is there any indirect way to do this other then feeding the input array with values between 20 to 25.??
> 
> Thanks
> 
> Regards
> Rakesh Patil
> _______________________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
> 
> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers



More information about the vtkusers mailing list