MantisBT - VTK
View Issue Details
0011393VTK(No Category)public2010-11-02 14:142016-08-12 09:55
Pof 
Marcus D. Hanwell 
normalfeaturealways
closedmoved 
 
 
0011393: method SetBorders() in vtkChartXY
The chart borders cannot be modified with the method SetBorders(), i.e. no chart modification appears.
No tags attached.
Issue History
2010-11-02 14:14PofNew Issue
2010-11-02 14:21Marcus D. HanwellStatusbacklog => tabled
2010-11-02 14:21Marcus D. HanwellAssigned To => Marcus D. Hanwell
2011-05-02 10:36Marcus D. HanwellNote Added: 0026299
2011-05-02 10:36Marcus D. HanwellStatustabled => @20@
2011-05-03 12:58PofNote Added: 0026426
2011-05-03 12:58PofStatus@20@ => tabled
2011-05-06 16:00Marcus D. HanwellNote Added: 0026451
2011-05-06 18:07PofNote Added: 0026454
2011-05-10 11:23Marcus D. HanwellNote Added: 0026476
2011-06-16 13:11Zack GalbreathCategory => (No Category)
2013-12-12 23:01Dave DeMarleStatusbacklog => expired
2013-12-12 23:01Dave DeMarleResolutionopen => fixed
2016-08-12 09:55Kitware RobotNote Added: 0037209
2016-08-12 09:55Kitware RobotStatusexpired => closed
2016-08-12 09:55Kitware RobotResolutionfixed => moved

Notes
(0026299)
Marcus D. Hanwell   
2011-05-02 10:36   
I think this is addressed with the AutoSize ivar in vtkChart to a degree. If that is set to false, then any values you set here will be respected. If you want to change the borders to a fixed amount while still filling the window then some more work is required.
(0026426)
Pof   
2011-05-03 12:58   
Hi Markus,
I can't find how to perfomrm what you're asking (setting AutoSize to false and set a value). Could you give point me to the right syntax?
Thanks
(0026451)
Marcus D. Hanwell   
2011-05-06 16:00   
If you have a chart object,

vtkNew<vtkChartXY> chart;
chart->SetAutoSize(false);
chart->SetSize(vtkRectf(0.0, 0.0, 100.0, 100.0));

This would create a chart that occupied the bottom corner of the screen, and took up 100 x 100 pixels. See the TestChartsOn3D test for an example of a fixed size chart (VTK master, Charts/Testing/Cxx/TestChartsOn3D.cxx).
(0026454)
Pof   
2011-05-06 18:07   
I cannot find the methods SetAutoSize() and SetSize().
I suspect it is not available in vtk5.6.1, which is the version I'm using.
Is it correct?
(0026476)
Marcus D. Hanwell   
2011-05-10 11:23   
Sorry, it is new API. VTK 5.8.0 is due out very soon.
(0037209)
Kitware Robot   
2016-08-12 09:55   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current VTK Issues page linked in the banner at the top of this page.