📜  水平条形图OO接口——Python代码示例

📅  最后修改于: 2022-03-11 14:45:09.736000             🧑  作者: Mango

代码示例1
import pandas as pd
import matplotlib.pyplot as plt

top20_deathtoll = pd.read_csv('top20_deathtoll.csv')
fig, ax = plt.subplots(figsize = 4.5,6))#mobile friendly proportion
ax.barh(df['x'],
        df['y'])
plt.show()