[vtkusers] Chart: coordinate conversions

nclemeur nclemeur at gmail.com
Mon Dec 27 23:30:22 EST 2010



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 

Cheers


Nicolas





-- 
View this message in context: http://vtk.1045678.n5.nabble.com/Chart-coordinate-conversions-tp3317405p3319956.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list