Reputation: 31
I have a simple problem , i am trying to add a reference line on the head of a bar keeping my value axis line same. For example
I want to add that blue line on the top of my reference bar.
Upvotes: 2
Views: 813
Reputation: 1091
I used following code to insert a line into a PowerPoint slides using python-pptx. The parameters are left, top, width and height for each Inches listed below. Inches(0) in width parameter inserts vertical line and Inches(0) in height parameter inserts horizontal line.
from pptx import Presentation
from pptx.enum.shapes import MSO_SHAPE
prs = Presentation()
slide = prs.slides.add_slide(blankSlideLayout)
line1 = slide.shapes.add_shape(MSO_SHAPE.LINE_INVERSE, Inches(6), Inches(6), Inches(1), Inches(2))
Upvotes: 2