Commit 43bec47f authored by Cory Quammen's avatar Cory Quammen

Fix label values jumping around

Ordering of calls to vtkAxis object is very important. The way they
were ordered out caused inconsistencies in the labeling when
interacting with the scalar bar. This change fixes the
inconsistencies.
parent 481e633b
Pipeline #7718 passed with stage
......@@ -828,8 +828,6 @@ void vtkPVScalarBarActor2::PaintAxis(vtkContext2D* painter, double size[2])
this->Axis->SetTitle(combinedTitle.c_str());
this->Axis->SetLogScale(this->LookupTable->UsingLogScale() == 1);
this->Axis->AutoScale();
this->Axis->SetUnscaledRange(range);
this->Axis->RecalculateTickSpacing();
this->Axis->SetRangeLabelsVisible(!indexedMode && this->AddRangeLabels == 1);
this->Axis->SetRangeLabelFormat(std::string(this->RangeLabelFormat));
......@@ -858,6 +856,9 @@ void vtkPVScalarBarActor2::PaintAxis(vtkContext2D* painter, double size[2])
this->Axis->SetCustomTickPositions(NULL);
}
this->Axis->SetUnscaledRange(range);
this->Axis->RecalculateTickSpacing();
this->Axis->Update();
this->Axis->Paint(painter);
}
......
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