-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Iss310] different colours plot scatter #374
Conversation
…dard input scatter_subplot
…olor list and added exemple for using matplotlib color list
Hi @BiancaMorandi , The below code should set the trendline to yellow. But it doesn't? bw.analyse.plot.COLOR_PALETTE.primary = '#FF0000' # Red
bw.analyse.plot.COLOR_PALETTE.secondary = '#FFFF00' # Yellow
data = bw.load_csv(bw.demo_datasets.demo_data)
WSPD_COLS = ['Spd80mN', 'Spd80mS', 'Spd60mN', 'Spd60mS', 'Spd40mN', 'Spd40mS']
display(bw.plot_scatter_wspd(data[WSPD_COLS[0]],data[WSPD_COLS[1]])) |
@stephenholleran color you have changed is for the trendline and what you are looking at is the 1:1 line for which color is defined at the moment as bw.analyse.plot.COLOR_PALETTE.secondary_70. if you run code below you will get what you expect. I think that we should replace any variable defining the shade of a color with a function calculating this based on the update of the main color.
|
Good idea. Could you create a card to capture this. We probably need to restructure the whole |
Opened issue #381 |
plot_scatter
,plot_scatter_by_sector
to give as input to_scatter_subplot
the scatter and trendline colorsplot_timeseries
defaultline_colors
input option