[vtkusers] vtkChartXY Zoom

Seun Odutola seun at rogue-research.com
Tue Apr 17 11:20:27 EDT 2018


Hi Andras,
   Thanks for the tip, by default I have the axes set to AUTO and calling recalculate on the chart does the trick. Note: RecalculatePlotBounds is protected so the function I’m running with is RecalculateBounds.

> On Apr 17, 2018, at 12:35 AM, Andras Lasso <lasso at queensu.ca> wrote:
> 
> If all your axes are set to vtkAxis::AUTO, then you can simply call vtkChartXY::RecalculatePlotBounds().
> 
> If you have manually set axes then you can take this method in 3D Slicer's plot view class: https://github.com/Slicer/Slicer/blob/66b152bc35e1f84eafcacd8050300687fa377229/Libs/MRML/Widgets/qMRMLPlotView.cxx#L458-L600
> 
> It would probably make sense to integrate this auto-fit feature into VTK.
> 
> Andras
> 
> -----Original Message-----
> From: vtkusers <vtkusers-bounces at vtk.org> On Behalf Of Seun Odutola
> Sent: Monday, April 16, 2018 3:15 PM
> To: VTK Users <vtkusers at vtk.org>
> Subject: [vtkusers] vtkChartXY Zoom
> 
> Hi everyone,
> 
>   I was wondering if someone could help me out on this one. I would like to display a large set of points on a vtkChartXY without any of the points off screen (that is I’ll like to be able to see all points as though the scene was zoomed out). How do I go about achieving this effect.
> _______________________________________________
> Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C6e3b895d746f4629fb9308d5a3ce4b6d%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636595028811616806&sdata=7Pnt8cyYoPZjJUP%2FurvvL448Jv50iOg%2BjviMRfdPqpc%3D&reserved=0
> 
> Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C6e3b895d746f4629fb9308d5a3ce4b6d%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636595028811616806&sdata=a%2FPUNsH8KzYi94RZYZO6kvj0ztr1FCWvegsxMGceEZM%3D&reserved=0
> 
> Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C6e3b895d746f4629fb9308d5a3ce4b6d%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636595028811616806&sdata=fKfkQ2%2FT%2FlNWQgS%2FLlm71EduUHHorHUeeW5ibq%2F03Bo%3D&reserved=0
> 
> Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C6e3b895d746f4629fb9308d5a3ce4b6d%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636595028811616806&sdata=SNaH5Y%2BQ3SVUl1k0quFZ0oG7jj1yTFPVMcc5h3st%2Flk%3D&reserved=0
> 
> Follow this link to subscribe/unsubscribe:
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C6e3b895d746f4629fb9308d5a3ce4b6d%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636595028811616806&sdata=tziqrFbdLz01nWy23JU3Yd79rZLto1kXHro0fGz2WN4%3D&reserved=0



More information about the vtkusers mailing list