Skip to content

Expose legend_scaler's max_labels in ColorMap #88

@martinfleis

Description

@martinfleis

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.

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.

Relevant bits:

def legend_scaler(legend_values, max_labels=10.0):

self.tick_labels = legend_scaler(self.index)

Happy to do a PR for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions