You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How would I access the X-values of a scatter plot?
I figured out how to access the Y-values and categories in Barcharts, but I did not come along a method on how to access the X-Values in scatter plots.
for x in shape.chart.plots:
for y in x.categories:
data_xy[1].append(y)
for ser in shape.chart.series:
for x in ser.values:
data_xy[0].append(x)
The text was updated successfully, but these errors were encountered:
frompptx.chart.seriesimportXySeries# ---not strictly requiredxy_series=chart.series[0] # ---or however you obtain ref to an XySeries objectassertisinstance(xy_series, XySeries) # ---not strictly required, just so you know what you've gotxVal=xy_series._element.xValforidxinrangexVal.ptCount_val):
printxVal.pt_v(idx)
Hi, thanks for the great library!
How would I access the X-values of a scatter plot?
I figured out how to access the Y-values and categories in Barcharts, but I did not come along a method on how to access the X-Values in scatter plots.
The text was updated successfully, but these errors were encountered: