MCPcopy Create free account
hub / github.com/Kitware/VTK / ApplyAxisSetting

Method ApplyAxisSetting

Charts/Core/vtkScatterPlotMatrix.cxx:1369–1386  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1367}
1368
1369void vtkScatterPlotMatrix::ApplyAxisSetting(
1370 vtkChart* chart, const vtkStdString& x, const vtkStdString& y)
1371{
1372 PIMPL::ColumnSetting& xSettings = this->Private->ColumnSettings[x];
1373 PIMPL::ColumnSetting& ySettings = this->Private->ColumnSettings[y];
1374 vtkAxis* axis = chart->GetAxis(vtkAxis::BOTTOM);
1375 axis->SetUnscaledRange(xSettings.min, xSettings.max);
1376 axis->SetBehavior(vtkAxis::FIXED);
1377 axis = chart->GetAxis(vtkAxis::TOP);
1378 axis->SetUnscaledRange(xSettings.min, xSettings.max);
1379 axis->SetBehavior(vtkAxis::FIXED);
1380 axis = chart->GetAxis(vtkAxis::LEFT);
1381 axis->SetUnscaledRange(ySettings.min, ySettings.max);
1382 axis->SetBehavior(vtkAxis::FIXED);
1383 axis = chart->GetAxis(vtkAxis::RIGHT);
1384 axis->SetUnscaledRange(ySettings.min, ySettings.max);
1385 axis->SetBehavior(vtkAxis::FIXED);
1386}
1387
1388void vtkScatterPlotMatrix::UpdateLayout()
1389{

Callers 2

SetActivePlotMethod · 0.95
UpdateLayoutMethod · 0.95

Calls 2

SetUnscaledRangeMethod · 0.80
GetAxisMethod · 0.45

Tested by

no test coverage detected