【发布时间】:2019-08-26 22:39:52
【问题描述】:
我试图了解 pandas.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)
我正在将我的子图放在另一个子图上,但我希望它们排成一行。
【问题讨论】:
-
这么说,您的意思是它们当前对齐为一列多行,但您希望它们为一列多列?
-
没错,我希望这两个图在一行和两列中。
标签: python pandas matplotlib plot subplot