matplotlib.pyplot as plt
# 自定义数据
x = [1, 2, 3, 4, 5]
y = [5, 3, 7, 4, 8]
# 初始化布局
plt.figure(figsize=(6, 4))
# 带圆圈标记的实线...for i in y], linestyle='--', marker='s', markersize=8, label='Dashed Line', color='green')
# 带有向上三角形标记的点划线...matplotlib.pyplot as plt
# 自定义数据
x = [1, 2, 3, 4, 5]
y = [5, 3, 7, 4, 8]
# 初始化布局
plt.figure(figsize=(6, 4))
# 带圆圈标记的实线...for i in y], linestyle='--', marker='s', markersize=8, label='Dashed Line', color='green')
# 带有向上三角形标记的点划线...plt.figure(figsize=(10, 10))
# 连接散点图
plt.plot(df.Amanda, df.Ashley, '-', marker='o')
# 为每个点添加年份(避免过度堆积,每隔三个点添加年份