Commit d56ab4eb authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Enabled 2D histogram test.

Also, for now, hard wiring the size as I have not finished the chart
layout code for the histogram legend.
parent c3415541
......@@ -13,7 +13,7 @@ IF (VTK_USE_RENDERING AND VTK_USE_VIEWS)
# add tests that require data
SET(MyTests ${MyTests}
#TestContextUnicode.cxx # Disabled until Freetype unicode works
#Test2DHistogram.cxx
Test2DHistogram.cxx
TestBarGraph.cxx
TestContext.cxx
TestContextImage.cxx
......
......@@ -68,6 +68,9 @@ int Test2DHistogram( int, char * [] )
transferFunction->Build();
chart->SetTransferFunction(transferFunction);
chart->SetAutoSize(false);
chart->SetSize(vtkRectf(0.0, 0.0, size - 40, size));
//Finally render the scene and compare the image to a reference image
view->GetRenderWindow()->SetMultiSamples(0);
view->GetInteractor()->Initialize();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment