SetFontSize on vtkCubeAxesActor bug?

How can I set the font size of the TitleTextProperty of a vtkCubeAxesActor?

The code below does not result in the specified font size of the vtkCubeAxesActor when plotting.

import vtk
ca = vtk.vtkCubeAxesActor()
ca.GetTitleTextProperty(0).SetFontSize(48)

2 Likes

I also get the same issue when trying to control the size of font.
vtk version: 9.0.1

I also get the same issue when trying to control the size of font.
vtk version: 9.2.2

There’s a workaround for this:

font_size = 48
import vtk
ca = vtk.vtkCubeAxesActor()
ca.SetScreenSize(font_size / 12 * 10.0)