Closed martinfleis closed 3 years ago
Hi,
I see that legend_scaler has an option to specify the number of labels (max_labels) but that is not accessible form within ColorMap.
legend_scaler
max_labels
ColorMap
Would be great to expose it in ColorMap.__init__ and then pass it to render. With large numbers you get overlaps and there's no way to prevent it.
ColorMap.__init__
render
Relevant bits: https://github.com/python-visualization/branca/blob/ac45f1e1fa95d10a2409409cf3c697f700cad314/branca/utilities.py#L37 https://github.com/python-visualization/branca/blob/ac45f1e1fa95d10a2409409cf3c697f700cad314/branca/colormap.py#L90 Happy to do a PR for that.
Hi,
I see that
legend_scaler
has an option to specify the number of labels (max_labels
) but that is not accessible form withinColorMap
.Would be great to expose it in
ColorMap.__init__
and then pass it torender
. With large numbers you get overlaps and there's no way to prevent it.Relevant bits: https://github.com/python-visualization/branca/blob/ac45f1e1fa95d10a2409409cf3c697f700cad314/branca/utilities.py#L37 https://github.com/python-visualization/branca/blob/ac45f1e1fa95d10a2409409cf3c697f700cad314/branca/colormap.py#L90 Happy to do a PR for that.