Python 您能在openpxl中只绘制点吗?没有线路

Python 您能在openpxl中只绘制点吗?没有线路,python,openpyxl,scatter-plot,graphing,Python,Openpyxl,Scatter Plot,Graphing,我有这个函数,它可以绘制两列数据,但是我不希望这些点被连接起来。有人知道怎么做吗?我尝试更改样式编号,但运气不佳 def _disp_plot_user( wb, worksheet_name: str, x_column_number: int, y_column_number: int, xtitle: str, ytitle: str, ): ws = wb[worksheet_name] chart = ScatterChart() chart.style = 11 title = y

我有这个函数,它可以绘制两列数据,但是我不希望这些点被连接起来。有人知道怎么做吗?我尝试更改样式编号,但运气不佳

def _disp_plot_user(
wb,
worksheet_name: str,
x_column_number: int,
y_column_number: int,
xtitle: str,
ytitle: str,
):
ws = wb[worksheet_name]
chart = ScatterChart()
chart.style = 11

title = ytitle + " vs " + xtitle
x_column_numb = x_column_number - 1
y_column_numb = y_column_number - 1
list = [x_column_numb, y_column_numb]
x_data = []
y_data = []
data = x_data
for i in list:
    for row in ws.iter_rows(min_row=4):
        item = row[i].value
        data.append(item)

    data = y_data
# lenx = len(x_data)
# leny = len(y_data)

xvalues = Reference(
    ws, min_col=x_column_number, min_row=6, max_col=x_column_number, max_row=4
)
yvalues = Reference(
    ws, min_col=y_column_number, min_row=6, max_col=y_column_number, max_row=4
)
size = Reference(ws, min_col=3, min_row=2, max_row=5)
series = Series(values=yvalues, xvalues=xvalues, zvalues=size, title=title)
chart.series.append(series)
chart.title = title
chart.x_axis.title = xtitle
chart.y_axis.title = ytitle
ws.add_chart(chart, "I3")

return wb

该文档包含一个示例:我已经能够让它添加三角形标记。然而,我不能让它删除实线。有什么想法吗@百灵鸟