%matplotlib inline
from ggplot import *
scale_x_discrete¶scale_x_discrete scale a discrete x-axis. Its parameters are:
name - axis labelbreaks - x tick breakslabels - x tick labelsggplot(diamonds, aes(x='cut')) + \
geom_bar() + \
scale_x_discrete("Cut (Quality)")