Open stephenholleran opened 5 years ago
for plot_12x24_contours()
cm = LinearSegmentedColormap.reversed(bw_colors('bw_col_map'))
x = ax.contourf(tab_12x24.columns, tab_12x24.index, tab_12x24.values, levels=levels,
cmap=cm)
# colors=['#e1f0c1', '#d6ebad', '#c2e184', '#aed75b', '#9acd32', '#8ab92d', '#7ba428', '#6b9023'])
The number of 'levels' can be increased now too if required.
Previous 12x24 plot:
New plot with bw_color_map:
Levels are now automatically decided by matplotlib.
:thumbsup:
@stephenholleran Found a way to use bw_color_map in wind rose, and the results are below. Need to make a few housekeeping changes if you think we are good to go.
Previous wind rose:
Wind rose with color map:
@Inder95 we should definitely go with the new color map. It looks good, but both look good.
The legend colors don't match up with the plot. Are these the house keeping things you are talking about?
@Inder95 we should definitely go with the new color map. It looks good, but both look good.
The legend colors don't match up with the plot. Are these the house keeping things you are talking about?
Yes these are the housekeeping issues. Will implement it.
@stephenholleran Issue is fixed, feel free to merge the changes to master.
Instead of 'green' use 'primary', 'asphalt' use 'secondary'. This makes it easier for users to assign their own colour scheme.