我在试着理解图.DataFrame.plot工作,但坚持把几个子地块在一条线上。我觉得很困惑,所以我的问题可能听起来很奇怪。但我会很感激你的帮助。你知道吗
recent_grads.plot(x = "Women", y = "Median", kind = "scatter", subplots = True, figsize=(6, 6), layout = (2,2), sharex = False)
recent_grads.plot(x = "Men", y = "Median", kind = "scatter", subplots = True, figsize=(6, 6), layout = (2,2), sharex = False)
我要把我的副牌放在另一个下面,但我要它们排成一行。你知道吗
您只需修改
layout
:另一种方法是创建
Axes
对象并显式指定它们:你可以从
matplotlib.pyplot
使用plt.subplots
相关问题 更多 >
编程相关推荐