[vtkusers] HistogramXYPlot example

Anka Kochanowska anka at bic.mni.mcgill.ca
Tue Aug 2 12:33:06 EDT 2011


 is in VTKMakeMoreInteresting<http://www.vtk.org/Wiki/Category:VTKMakeMoreInteresting>
because the plot does not take the whole window.

It is enough to add after lines:
  plot->SetXRange( 0, xmax );
  plot->SetYRange( 0, ymax );

new lines:
  plot->GetPositionCoordinate()->SetValue(0.0, 0.0);
  plot->GetPosition2Coordinate()->SetValue(1.0, 1.0);

before line
  // Visualize the histogram(s)


(Attached the whole file)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110802/35eab478/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HistogramXYPlot.cxx
Type: text/x-c++src
Size: 4017 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110802/35eab478/attachment.cxx>

More information about the vtkusers mailing list