<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, May 30, 2018 at 5:38 PM, BBerco <span dir="ltr"><<a href="mailto:bebe0705@colorado.edu" target="_blank">bebe0705@colorado.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I am trying to use an instance of vtkChartHistogram2D to visualize a<br>
vtkImageData. I think it is a possibility in VTK given the partial example<br>
on page 48 of this document<br>
<<a href="https://pdfs.semanticscholar.org/presentation/a2bd/c9861a548bb1e8807a1d39b43e526a7c4564.pdf" rel="noreferrer" target="_blank">https://pdfs.semanticscholar.<wbr>org/presentation/a2bd/<wbr>c9861a548bb1e8807a1d39b43e526a<wbr>7c4564.pdf</a>> <br>
. <br>
<br>
Unfortunately, the above example is incomplete, and replicating it has been<br>
unsuccessful. Below is what I have so far: a QVTKOpenGLWidget sharing a<br>
vtkGenericOpenGLRenderWindow with a vtkContextView. <br>
<br>
Any advice?<br></blockquote><div><br></div><div>I wrote a number of tests for the charts, such as this one which is fully functional with image regression testing,</div><div><br></div><div><a href="https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestHistogram2D.cxx">https://github.com/Kitware/VTK/blob/master/Charts/Core/Testing/Cxx/TestHistogram2D.cxx</a></div><div><br></div><div>It shows all elements including using a vtkImageData in the plot. You should be able to use that as a starting point, and adapt. </div></div></div></div>