【发布时间】:2011-05-15 07:02:23
【问题描述】:
我想在同一个散点图上绘制多个数据集:
cases = scatter(x[:4], y[:4], s=10, c='b', marker="s")
controls = scatter(x[4:], y[4:], s=10, c='r', marker="o")
show()
以上只显示最近的scatter()
我也试过了:
plt = subplot(111)
plt.scatter(x[:4], y[:4], s=10, c='b', marker="s")
plt.scatter(x[4:], y[4:], s=10, c='r', marker="o")
show()
【问题讨论】:
-
叠印在同一行。
标签: python scipy matplotlib