vtkPlot+vtkChartXY doesen't rendered correcly for specific x values
Dear all,
I am currently developing some data visualization tools for a personal project and I stumbled upon what I think it's a bug concerning the use of vtkPlot
, vtkChartXY
and vtkContextView
similar to the one in the TestScatterPlot test.
I've found that - for specific values of the x
data with respect to x
values range - the rendered result is incorrect when rendering directly and not using an interactor.
Calling x_range = x_max - x_min
for a plot added to vtkChartXY
, a direct render of the vtkContextView
has a correct output when the values of x
are below the threshold of ~100 * x_range
. If x
values exceed that threshold the plots added to vtkChartXY
will not be displayed.
I am aware that this description is quite weird, and it was not simple to narrow down the source of this misbehavior.
I did put together a working example and some documentation, please find more informations here: https://github.com/marcoreato/vtkScatterPlotBug.
I've tried on two different machines (both with Ubuntu 18.04LTS, gcc 7.4.0) and I've used the latest VTK release v8.2.0.