Enthought Canopy Mayavi font size bug

Deadly 提交于 2019-12-29 08:43:07

问题


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.)

nor the direct menu font size command (advanced settings) works.

I have logged a bug report with Enthought, but it looks like a more general Mayavi bug, see

Does Mayavi "Font Size" text property work?


回答1:


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.



来源:https://stackoverflow.com/questions/19825520/enthought-canopy-mayavi-font-size-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!