I want to use the brewer example found here:
However, when I copied and pasted the codes directly, I get the error on lines:
p = figure()
p.patches([x2 for a in areas], list(areas.values()), color=colors, alpha=0.8, line_color=None)
AttributeError: 'NoneType' object has no attribute 'patches'
The same happened with I tried modifying the codes for my own data.
There are limited documentation on this and I don't know if this example is outdated.
Any help would be greatly appreciated!