vtkChartXY: tick labels broken with QVTKOpenGLWidget
Hi,
Tick labels appear to be broken in vtk charts (vtkChartXY
) when rendered in a QVTKOpenGLWidget
: Code that would ordinarily produce tick labels when rendered in a normal vtkRenderWindow
does not produce tick labels when rendered in a QVTKOpenGLWidget
context.
Using vtkAxis::SetCustomTickPositions()
, vtkAxis::SetNumberOfTicks()
, vtkAxis::SetLabelsVisible()
, etc, in attempt to force tick labels in a QVTKOpenGLWidget
context does not work as expected.
Attached a minimum working example that opens two windows, one a QT window and one an ordinary vtkRenderWindow
. Both use exactly the same code to draw an example plot (taken from https://www.vtk.org/Wiki/VTK/Examples/Cxx/Plotting/LinePlot), but tick labels only appear as expected in the vtkRenderWindow
.