[vtkusers] Chart: coordinate conversions

Marcus D. Hanwell marcus.hanwell at kitware.com
Thu Dec 30 13:10:31 EST 2010


On Mon, Dec 27, 2010 at 11:30 PM, nclemeur <nclemeur at gmail.com> wrote:
>
>
> Marcus D. Hanwell-2 wrote:
>>
>>
>> I could certainly add accessors for the vtkTransform2D objects, or the
>> entire vtkContextTransform object for each of the corners. I have been
>> looking at this class with a critical eye as adding the support for
>> multiple plot corners (feature required by ParaView) has made the code
>> significantly more complex.
>>
>> It would not be a problem to add a little API to get at the objects you
>> need.
>>
>
> I would definitely appreciate that and I am ready to help, but I am not
> really sure where to start. Just let me know if I can do anything.
>
> In the meantime, I have some more information about the (small) problem I
> have found mentioned in this post:
>
> http://vtk.1045678.n5.nabble.com/Question-on-Viewports-vtkChartXY-SetGeometry-in-example-TestMultipleChartRenderers-cxx-tp3284622p3295269.html
>
> It seems that the grid lines been drawn outside the chart area is not linked
> to the multiple charts in the same view, but to the logarithmic scale. I
> have reproduced the problem in the TestLinePlotInteraction by adding the
> lines below after the creation of the chart:
>
> chart->GetAxis(0)->SetLogScale(true);
> chart->GetAxis(1)->SetLogScale(true);
>
> A screenshot illustrating the problem is below:
>
> http://vtk.1045678.n5.nabble.com/file/n3319956/LinePlotInteraction.png
>
Ah, that is some new contributed code. I will see about getting a
regression test in and ensuring it does not draw outside the axis'
range. Thanks for narrowing down the issue.

Marcus



More information about the vtkusers mailing list