Python matplotlib multiple bars

import matplotlib.pyplot as plt from matplotlib.dates import date2num import datetime x = [ datetime.datetime(2011, 1, 4, 0, 0), datetime.datetime(2011, 1, 5, 0, 0), datetime.datetime(2011, 1, 6, 0, 0) ] x = date2num(x) y = [4, 9, 2] z = [1, 2, 3] k = [11, 12, 13] ax = plt.subplot(111) ax.bar(x-0.2, y, width=0.2, color=”b”, align=’center’) … Read more

Label axes on Seaborn Barplot

Seaborn’s barplot returns an axis-object (not a figure). This means you can do the following: import pandas as pd import seaborn as sns import matplotlib.pyplot as plt fake = pd.DataFrame({‘cat’: [‘red’, ‘green’, ‘blue’], ‘val’: [1, 2, 3]}) ax = sns.barplot(x = ‘val’, y = ‘cat’, data = fake, color=”black”) ax.set(xlabel=”common xlabel”, ylabel=”common ylabel”) plt.show()

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)