阅读背景:

如何在Pandas barplot中旋转x轴刻度标签

来源:互联网 

With the following code:

使用以下代码:

import matplotlib
matplotlib.style.use('ggplot')
import matplotlib.pyplot as plt
import pandas as pd

df = pd.DataFrame({ 'celltype':["foo","bar","qux","woz"], 's1':[5,9,1,7], 's2':[12,90,13,87]})
df = df[["celltype","s1","s2"]]
df.set_index(["celltype"],inplace=True)
df.plot(kind='bar',alpha=0.75)
plt.xlabel("")
import mat



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: