Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 xlsxwriter 中隐藏图表上的列网格线。我查看了图表格式部分中的文档页面,但找不到任何示例。
谢谢!
如果您查看图表类的文档,则有方法set_x_axis和set_y_axis. 它需要一个格式化选项字典。您可以通过的选项之一是{'visible': False}.
set_x_axis
set_y_axis
{'visible': False}
您还可以只配置主要或次要网格线{'major_gridlines' :{'visible': False}}
{'major_gridlines' :{'visible': False}}