Quantcast

vtkXYPlotActor change axis orientation

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

vtkXYPlotActor change axis orientation

Oliver Weinheimer
This post was updated on .
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->GetYAxisActor2D()->SetTitleTextProperty(tprop_yaxis);

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?
Loading...