【发布时间】:2017-08-03 19:31:25
【问题描述】:
我有一个数据框有列x1, x2, x3, x4, x5, x6, my_y。我正在为每个 xi ~ y 制作散点图,例如:
%matplotlib notebook
import matplotlib.pyplot as plt
import matplotlib
matplotlib.style.use('ggplot')
my_df.plot(x='x1', y='my_y', kind = 'scatter', marker = 'x', color = 'black', ylim = [0, 10])
我对@987654323@ 重复上述代码 6 次,以创建 6 个数字。我想知道是否可以用 6 个散点图制作一个图形?谢谢!
【问题讨论】:
-
如果你这样做
x=['x1', 'x2', 'x3', 'x4', 'x5', 'x6']会发生什么?
标签: python-3.x pandas matplotlib