Enthought Canopy Mayavi font size error

The font size setting in Enthough Canopy Mayavi mlab is broken.

Neither team:

mlab.axes.label_text_property.font_size = 12 (eg)

and the direct menu font size command does not work (advanced settings).

I logged an error report with Enthought, but it looks like a more general Mayavi error, see

Does Maya "Font Size" have a text property?

+4
source share
1 answer

As you say, this is a translation error between the Mayavi layer and the vtk layer. But now you can use this attribute:

 >> ax=mlab.axes() >> ax.axes.font_factor 1.5 >> ax.axes.font_factor=2 

It only produces a slight increase in size, though, since it rejects values ​​above 2.

+3
source

All Articles