[vtkusers] Changing Text Property of axis labels for XY Plots
Helvin Lui
helvinlui at gmail.com
Thu Sep 3 21:14:40 EDT 2009
You need to set scalarvisibilityOff() for the mapper, else by default the
mapper controls the colour. I came across this problem before too, and made
an entry in my blog, where I say what I want to do, what problem I met, and
how I solved it.
You need something like this: map.ScalarVisibilityOff()
http://learnwithhelvin.blogspot.com/2009/08/actor-color-colour-change.html
<http://learnwithhelvin.blogspot.com/2009/08/actor-color-colour-change.html>
Helvin
On Fri, Sep 4, 2009 at 1:04 PM, Venkattraman A <venkattraman04 at gmail.com>wrote:
> Hi,
>
> I have been trying to change the properties of the y-axis label in one of
> my xy plots obtained in VTK. I use the following piece of code
>
>
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().SetOrientation(45.0)
>
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().ItalicOn()
>
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().BoldOn()
>
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().SetColor(1.0,0.0,0.0)
> print
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().GetColor()
> print
> self.xyplot.GetYAxisActor2D().GetTitleTextProperty().GetOrientation()
>
> I notice that the print statements do reflect the changes I made but there
> is absolutely no change in the plot itself. Is there some kind of an
> Update() like method I need to call ? My main aim is to rotate the Y axis
> label by 90 degrees but none of the text property changes are reflected and
> so I was wondering if I was overlooking something very silly.
>
> Thanks in advance!
> Venkat
> --
> Venkattraman
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Helvin
"Though the world may promise me more, I'm just made to be filled with the
Lord."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090904/129def08/attachment.htm>
More information about the vtkusers
mailing list