Skip to content

Add a function to get the min and max (or supplied percentiles) of values #525

@mdtanker

Description

@mdtanker

Description of the desired feature:
This function would be the equivalent of maxabs but to use for datasets not diverging around 0. For example, for plotting topography data, you may want to get the max and min values of the grid to create a colormap. Similar to #524, I propose allowing passing a tuple of 2 percentiles, so users can get more robust values, such as the 2% and 98% percentiles of the data, instead of the min and max, to help colorbars be less sensitive to outliers.

Are you willing to help implement and maintain this feature?

Yes, I will open a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementIdea or request for a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions