You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I am getting the following error, while trying to use scale_color_brewer in any code: ValueError: Invalid number for map type 'Diverging' and name 'BrBG'. Valid numbers are : [3, 4, 5, 6, 7, 8, 9, 10, 11]
I have tried with or without parameters - but they throw the same error: scale_color_brewer(type='div')
or scale_color_brewer()
or scale_color_brewer(type='div', palette=4)
Example snippet: ggplot(df, aes(x='col1', y='col2', color='col3')) +\ geom_point() +\ scale_color_brewer()
The text was updated successfully, but these errors were encountered:
Hi, based on not knowing what col3 is in your dataframe: ggplot is only able to handle strings as qualifiers. So convert df.col3's type to str (pd.DataFrame.astype, I believe) and everything should work.
Hi,
I am getting the following error, while trying to use scale_color_brewer in any code:
ValueError: Invalid number for map type 'Diverging' and name 'BrBG'. Valid numbers are : [3, 4, 5, 6, 7, 8, 9, 10, 11]
I have tried with or without parameters - but they throw the same error:
scale_color_brewer(type='div')
or
scale_color_brewer()
or
scale_color_brewer(type='div', palette=4)
Example snippet:
ggplot(df, aes(x='col1', y='col2', color='col3')) +\ geom_point() +\ scale_color_brewer()
The text was updated successfully, but these errors were encountered: