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

ENH: Use less points, make tan a bar chart.

Show off a few different effects in the chart matrix.

Change-Id: I57f33ed1726ea6f3f66c00662628421dd2e7e02e
parent 6d38a728
......@@ -54,7 +54,7 @@ int TestChartMatrix( int, char * [] )
tangent->SetName("Tangent");
table->AddColumn(tangent.GetPointer());
// Test charting with a few more points...
int numPoints = 69;
int numPoints = 42;
float inc = 7.5 / (numPoints-1);
table->SetNumberOfRows(numPoints);
for (int i = 0; i < numPoints; ++i)
......@@ -82,7 +82,7 @@ int TestChartMatrix( int, char * [] )
line->SetColor(0, 0, 255, 255);
chart = matrix->GetChart(vtkVector2i(1, 1));
line = chart->AddPlot(vtkChart::POINTS);
line = chart->AddPlot(vtkChart::BAR);
line->SetInput(table.GetPointer(), 0, 4);
//Finally render the scene and compare the image to a reference image
......
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