2
给定一个matplotlib.axes_subplots.AexesSubplot对象如何判断它包含哪种类型的绘图?有没有matplotlib功能可以为我确定这个功能?例如...确定Matplotlib轴的子类型
我经常绘制与大熊猫
import pandas as pd
df = pd.DataFrame({'y':range(10)})
line_ax = df.plot()
或
bar_ax = df.plot(kind='bar')
或
barh_ax = df.plot(kind='barh')
这就是我曾经想过的。我正在清理一些我在线图上使用的函数,以便对任何“种类”情节进行更一般化。我开始写自己的功能,并认为可能已经有了我的东西。 –