Commit ff36eb88 authored by Aashish Chaudhary's avatar Aashish Chaudhary
Browse files

ENH: Fixed offset of non polar axes

Change-Id: I435af84314642cd5ca458cdf53d518c0772db53d
parent 3ed7f823
...@@ -171,11 +171,15 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor() ...@@ -171,11 +171,15 @@ vtkPolarAxesActor::vtkPolarAxesActor() : vtkActor()
// Pass information to axes followers // Pass information to axes followers
vtkAxisFollower* follower = axis->GetTitleActor(); vtkAxisFollower* follower = axis->GetTitleActor();
follower->SetAxis( axis ); follower->SetAxis( axis );
if ( !i )
{
double offset = this->LabelScreenOffset + this->ScreenSize * 0.5; double offset = this->LabelScreenOffset + this->ScreenSize * 0.5;
// Replace default screen offset (for polar axis only) // Using base offset if not a polar axis.
follower->SetScreenOffset( offset );
if ( !i )
{
// Using twice the base offset for the title of the polar axis.
follower->SetScreenOffset( 2.0 * offset ); follower->SetScreenOffset( 2.0 * offset );
vtkAxisFollower **labelActors = axis->GetLabelActors(); vtkAxisFollower **labelActors = axis->GetLabelActors();
......
Supports Markdown
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