[vtkusers] vtkXYPlotActor: YTitle questions

John Hunter jdhunter at ace.bsd.uchicago.edu
Fri Nov 30 11:33:07 EST 2001


I am writing an interactive interface to vtkXYPlotActor; thus
sometimes the plot is rendered before the YTitle is set.  When this
happens, and the length of the YTitle is changed from the default
'Y Axis', the Y axis moves with the length of the new title string,
and is disassociated from the X axis.

Ie, this sequence of commands will cause the Y axis to move
independently of the rest of the plot

  # "P" is shorter than the default "Y axis" and the Y axis shifts to
  # the left
  renWin.Render()
  theXYPlot.SetYTitle("P")    
  renWin.Render()

I have not been able to find the function in vtkXYPlotActor or its
parents which will redraw the entire figure with proper scaling.  

Any suggestions?

My second question regarding Y titles is: is there any way to rotate them
vertically so they parallel the Y axis and take up less room in the
plot?

Thanks, 
John Hunter

vtk3.2



More information about the vtkusers mailing list