<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=GB2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi vtk developers,<br>
<br>
I am a newbie of libvtk, so simply copy the
<meta http-equiv="content-type" content="text/html; charset=GB2312">
<a
href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/ScatterPlot">http://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/ScatterPlot</a>
source code, then try to be familar with vtkAxis, vtkOther objects.<br>
<br>
The ScatterPlot example is using AutoScale axis, then I learned how
to set range and FIXED X/Y axis, the source code shown as below:<br>
<br>
// Y
Axis <br>
chart->GetAxis(0)->SetBehavior(vtkAxis::FIXED);
<br>
chart->GetAxis(0)->SetRange(0,
2050); <br>
// X
Axis <br>
chart->GetAxis(1)->SetBehavior(vtkAxis::FIXED);
<br>
chart->GetAxis(1)->SetRange(0, 4000);<br>
<br>
NOTE: chart object is vtkSmartPointer<vtkChartXY> chart =
vtkSmartPointer<vtkChartXY>::New();<br>
<br>
And ScatterPlot example`s origin point position is LEFT &&
BOTTOM, I just want to change it into LEFT && TOP<br>
But I tried to SetPosition, SetPoint1 and other vtkAxis`s APIs for
setting the origin point position to LEFT && TOP, it all
failed :(<br>
<br>
Please someone give me some advice, thanks a lot!<br>
<br>
Leslie Zhai<br>
</body>
</html>