更改轴上文本的角度 [英] Change angle of text on axis
本文介绍了更改轴上文本的角度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以在 XlsxWriter 中更改文本在轴上的角度?
在 Excel 中,您可以这样做:
格式轴>对齐>文本布局>自定义角度:-70
Is it possible to change the angle of the text on an axis in XlsxWriter?
In Excel, you would do this:
Format Axis > Alignment > Text Layout > Custom Angle: -70
我认为 VB 宏应该是这样的:
And I think a VB macro would look like this:
ActiveChart.Axes(xlCategory).TickLabels.Orientation = -70 ' degrees
我在 XlsxWriter 文档中没有看到关于此的任何内容.
I don't see anything in the XlsxWriter docs about this.
推荐答案
对于这种情况,我认为有 set_x_axis
(set_y_axis) 方法.
There is set_x_axis
(set_y_axis) method for such cases i think.
chart.set_x_axis({'name_font': {'bold': True, 'italic': True}})
这是链接到文档.
这篇关于更改轴上文本的角度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文