🖥️ IT, 컴퓨터/🐍 Python

[Python] 파이썬으로 지도 그리기 (2) color map 선택 (feat. branca)

김 홍시 2023. 1. 9.
반응형
from branca.colormap import linear

colormap = linear.YlGn_09.scale(
    unemployment.Unemployment.min(), unemployment.Unemployment.max()
)

print(colormap(5.0))

colormap

 

 

 

출처

https://python-visualization.github.io/branca/colormap.html#module-branca.colormap

 

branca.colormap — branca 0.6.0 documentation

colors (list-like object with at least two colors.) – The set of colors to be used for interpolation. Colors can be provided in the form: * tuples of RGBA ints between 0 and 255 (e.g: (255, 255, 0) or (255, 255, 0, 255)) * tuples of RGBA floats between 0

python-visualization.github.io

 

 

 

반응형

댓글