Change angle of text on axis

為{幸葍}努か 提交于 2019-12-11 05:03:20

问题


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

And I think a VB macro would look like this:

ActiveChart.Axes(xlCategory).TickLabels.Orientation = -70  ' degrees

I don't see anything in the XlsxWriter docs about this.


回答1:


There is set_x_axis (set_y_axis) method for such cases i think.

chart.set_x_axis({'name_font': {'bold': True, 'italic': True}})

Here is link into docs.



来源:https://stackoverflow.com/questions/27427877/change-angle-of-text-on-axis

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