aScalarBar->SetNumberOfLabels( NB_COLORS * 0.75 );
aScalarBar->SetWidth( aScalarBar->GetWidth() / 1.5 );
aScalarBar->SetTextureGridWidth( aScalarBar->GetTextureGridWidth() * 4. );
+ aScalarBar->SetTitle( " " );
+ // The call of SetTitle() with dummy string is a workaround necessary
+ // to avoid the problem with uninitialized variables in VTK scalar bar actor
+ // which leads to incorrect (very big) size of the VTK scalar bar presentation
aTable->Delete();
myScalarBars.insert( theViewId, aScalarBar );
}