Enthought Canopy Mayavi font size bug

后端 未结 1 1759
滥情空心
滥情空心 2020-12-20 23:17

The font size setting in Enthough Canopy Mayavi mlab appears to be broken.

Neither the command:

mlab.axes.label_text_property.font_size = 12 (e.g.)

相关标签:
1条回答
  • 2020-12-20 23:56

    As you say this is a bug that has to do with the translation between the mayavi layer and the vtk layer. But for now you could use this attribute:

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

    It only produces a small increase in size, though, as it rejects values above 2.

    0 讨论(0)
提交回复
热议问题