scanny / python-pptx

Create Open XML PowerPoint documents in Python
MIT License
2.44k stars 528 forks source link

`chart.category_axis.format.line.width = 0` does nothing #713

Closed mszbot closed 3 years ago

mszbot commented 3 years ago

Problem: I want to disable the category axis' line. Using the snippet below does nothing. The line width in the UI is still set to 0.75.

chart.category_axis.format.line.width = 0

Desired result: image

Would be great if a user can toggle this property:

chart.category_axis.format.line = False

scanny commented 3 years ago

Try chart.category_axis.format.line.fill.background() which sets the line to be transparent.