Skip to content

Instantly share code, notes, and snippets.

@trsqxyz
Created July 3, 2015 05:08
Show Gist options
  • Save trsqxyz/53ffab06566957a83903 to your computer and use it in GitHub Desktop.
Save trsqxyz/53ffab06566957a83903 to your computer and use it in GitHub Desktop.
In [175]: for i in range(len(df.mean().index)):
.....: plt.bar(i, df.mean().iloc[i].gross, label=df.mean().index[i], color='0.{0}1'.format(i))
.....:
In [176]: plt.legend(loc='best')
Out[176]: <matplotlib.legend.Legend at 0xc5c1770>
In [177]: plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment