<div dir="ltr">Hi, <div><br></div><div>  can anyone explain how to interpret the coordinate system passed to vtkChartXYZ::SetGeometry ? </div><div><br></div><div>  e.g., in this example:  <a href="https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestChartXYZ.cxx">https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestChartXYZ.cxx</a></div>

<div><br></div><div>  where does the magic argument <span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">vtkRectf</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">(</span><span class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre;color:rgb(0,153,153)">75.0</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">,</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre"> </span><span class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre;color:rgb(0,153,153)">20.0</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">,</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre"> </span><span class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre;color:rgb(0,153,153)">250</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">,</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre"> </span><span class="" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre;color:rgb(0,153,153)">260</span><span class="" style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:17px;line-height:18px;white-space:pre">) </span>come from ? </div>

<div> </div><div><pre style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:13.600000381469727px;margin-top:0px;margin-bottom:0px;color:rgb(51,51,51);line-height:18px"><div class="" id="LC59" style="padding-left:10px;height:18px">

<span class="" style>  view</span><span class="" style="font-weight:bold">-></span><span class="" style>GetRenderWindow</span><span class="" style>()</span><span class="" style="font-weight:bold">-></span><span class="" style>SetSize</span><span class="" style>(</span><span class="" style="color:rgb(0,153,153)">400</span><span class="" style>,</span> <span class="" style="color:rgb(0,153,153)">300</span><span class="" style>);</span></div>

<div class="" id="LC60" style="padding-left:10px;height:18px">  <span class="" style>view</span><span class="" style="font-weight:bold">-></span><span class="" style>GetScene</span><span class="" style>()</span><span class="" style="font-weight:bold">-></span><span class="" style>AddItem</span><span class="" style>(</span><span class="" style>chart</span><span class="" style>.</span><span class="" style>GetPointer</span><span class="" style>());</span></div>

<div class="" id="LC61" style="padding-left:10px;height:18px">  <span class="" style>vtkNew</span><span class="" style="font-weight:bold"><</span><span class="" style>vtkChartXYZ</span><span class="" style="font-weight:bold">></span> <span class="" style>chart2</span><span class="" style>;</span></div>

<div class="" id="LC62" style="padding-left:10px;height:18px">  <span class="" style>chart2</span><span class="" style="font-weight:bold">-></span><span class="" style>SetAutoRotate</span><span class="" style>(</span><span class="" style="color:rgb(0,134,179)">true</span><span class="" style>);</span></div>

<div class="" id="LC63" style="padding-left:10px;height:18px">  <span class="" style>chart2</span><span class="" style="font-weight:bold">-></span><span class="" style>SetFitToScene</span><span class="" style>(</span><span class="" style="color:rgb(0,134,179)">false</span><span class="" style>);</span></div>

<div class="" id="LC64" style="padding-left:10px;height:18px">  <span class="" style>chart</span><span class="" style="font-weight:bold">-></span><span class="" style>SetDecorateAxes</span><span class="" style>(</span><span class="" style="color:rgb(0,134,179)">false</span><span class="" style>);</span></div>

<div class="" id="LC65" style="padding-left:10px;height:18px">  <span class="" style>view</span><span class="" style="font-weight:bold">-></span><span class="" style>GetScene</span><span class="" style>()</span><span class="" style="font-weight:bold">-></span><span class="" style>AddItem</span><span class="" style>(</span><span class="" style>chart2</span><span class="" style>.</span><span class="" style>GetPointer</span><span class="" style>());</span></div>

<div class="" id="LC67" style="padding-left:10px;height:18px">  <span class="" style>chart</span><span class="" style="font-weight:bold">-></span><span class="" style>SetGeometry</span><span class="" style>(</span><span class="" style>vtkRectf</span><span class="" style>(</span><span class="" style="color:rgb(0,153,153)">75.0</span><span class="" style>,</span> <span class="" style="color:rgb(0,153,153)">20.0</span><span class="" style>,</span> <span class="" style="color:rgb(0,153,153)">250</span><span class="" style>,</span> <span class="" style="color:rgb(0,153,153)">260</span><span class="" style>));</span></div>

</pre><div><br></div><div>  It'd be good to know what to pass in to always force the origin of the chart to the center of the window, for example. </div><div><br></div><div>regards,</div><div>  Peter Karasev</div><div>

<br></div></div><div><br></div><div><br></div></div>