[vtkusers] vtkXYPlotActor change axis orientation
Oliver Weinheimer
mail at oliwe.com
Wed May 10 12:16:54 EDT 2017
I am trying to change the orientation of the yaxis title of a vtkXYPlotActor
- but it does not work.
I am using
vtkXYPlotActor* profile;
....
vtkTextProperty* tprop_yaxis =
profile->GetYAxisActor2D()->GetTitleTextProperty();
tprop_yaxis->SetOrientation(90.0);
tprop_yaxis->SetColor(1,0,0);
profile->GetXAxisActor2D()->SetTitleTextProperty(tprop_xaxis);
nothing happens!?
I can change all titles via
vtkTextProperty* tprop_titles = profile->GetTitleTextProperty();
tprop_titles->SetColor(1,0,0);
profile->SetTitleTextProperty(tprop_titles);
But applying changes for the axis separatly does not work.
Any hints?
--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkXYPlotActor-change-axis-orientation-tp5743183.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list