In [1]:
%matplotlib inline
from ggplot import *
In [2]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point() + \
scale_color_manual(values=['blue', 'green', 'purple'])
Out[2]:
In [3]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point() + \
scale_color_manual(values=['MediumSeaGreen', 'MediumSlateBlue', 'MediumAquaMarine'])
Out[3]:
In [4]:
ggplot(mtcars, aes(x='wt', y='mpg', color='factor(cyl)')) + \
geom_point() + \
scale_color_manual(values=['#ff0000', '#ff8000', '#ffbf00'])
Out[4]:
In [ ]: