[vtkusers] Why Axis Labels (X,Y,Z) do not show (Axes.py)?

Mike Taverne Mike.Taverne at bristol.ac.uk
Mon Jul 28 06:59:31 EDT 2014


I see the labels when running your script.
Both with VTK 5.8.0 and VTK 6.1.0.

Changing the text and its color also works.

Maybe it is a rendering issue similar to the one I have with colors on
surfaces creates from sampled implicit functions.

I'm using python 2.7.6, but I don't think that's where the problem comes
from.

OS: Ubuntu 14.04.1 LTS (64bit)
Python: 2.7.6 (64bit as well I guess, distro package)
VTK: 5.8.0 from the ubuntu repositories and 6.1.0 compiled from source

On 28/07/14 01:53, Kang Zhao wrote:
> Hello,
> 
> When I ran the attached Python script, the axis lables (X,Y,Z) didn't
> show up. I also tried playing with
> axes.GetXAxisCaptionActor2D().GetCaptionTextProperty.SetColor(1,0,0) and
> SetXAxisLabelText(), but no success.
> 
> PS, the script could be found at:
> http://www.cmake.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/Axes.
> 
> Could anyone help to share some clue?
> 
> My environment:
> 
> OS: Windows 7 (64-bit)
> Python: 2.7.7 (32 bit)
> wxPython: wxPython2.8-win32-unicode-2.8.12.1-py27.exe
> VTK: vtkpython-6.1.0-Windows-32bit.exe
> 
> Thanks for your help in advance.
> 
> Kang
> 
> 
> 
> 
> 
> _______________________________________________
> 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://public.kitware.com/mailman/listinfo/vtkusers
> 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Axes.py
Type: text/x-python
Size: 1479 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140728/5deffd8b/attachment.py>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Axes_VTK6.1.0.png
Type: image/png
Size: 14147 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140728/5deffd8b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Axes_VTK5.8.0.png
Type: image/png
Size: 14516 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140728/5deffd8b/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 884 bytes
Desc: OpenPGP digital signature
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20140728/5deffd8b/attachment.sig>


More information about the vtkusers mailing list