-
Notifications
You must be signed in to change notification settings - Fork 541
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to set manually chart_title position? #1030
Comments
@rileym99 the general gist is:
If there is an existing property or method like If you have a search around on "python-pptx workaround function" as a start you should be able to find ways folks have done that. You may want to dig into the internals that |
Thank you for your help @scanny - I've been able to implement this. I've put some sample code below in case anybody else has this request.
|
Hello,
I've been using python-pptx 1.0.2 for several weeks now and find it very helpful. I've been able to do or find workarounds to everything I need to do except set manually the position of a chart title. I would like to align it to the left of the chart object.
I was trying to use something like the layout attribute that I found here: https://stackoverflow.com/questions/48325832/custom-legend-position-with-python-pptx but the chart_title element doesn't appear to have this property as I get the error: AttributeError: 'CT_Title' object has no attribute 'get_or_add_layout'.
Does anyone have any suggestions on a workaround?
Thanks,
Matthew
The text was updated successfully, but these errors were encountered: