
df.Date.dt.month creates a pandas.Series of month numbersĪx = df.plot(kind='scatter', x='Date', y='High', c=df.Date.dt.month, cmap='Set3', figsize=(11, 4), title='c parameter as a month number').
#Matplotlib subplot scatter install


Thank you for your responses but I want to include a sample dataframe to clarify what I am asking. #ideal situation with pandas dataframe, 'df', where colors are chosen by col3 Ggplot(data = df, aes(x=col1, y=col2, color=col3)) + geom_point() I'm wondering if there are there any convenience functions that people use to map colors to values using pandas dataframes and Matplotlib? #ggplot scatterplot example with R dataframe, `df`, colored by col3 I can quickly make a scatterplot and apply color associated with a specific column and I would love to be able to do this with python/pandas/matplotlib. One of my favorite aspects of using the ggplot2 library in R is the ability to easily specify aesthetics.
