Skip to content

NEW FEATURE: use a slice for bounds formatoption #26

Description

@Chilipp

Summary

Currently you cannot easily define pass a range to the bounds or levels formatoption. There should be a possibility to specify something like bounds=slice(0, 1, 0.1) or bounds=slice(None, 1, 0.1).

Reason

The user does not have to specify the bounds manually.

Examples

see also

  • slice(None) should be the same as "minmax",
  • slice(None, 1) should take the minimum from minmax, the maximum is 1 and the step is 1
  • slice(None, 1, 0.1) should take the minimum from minmax, the maximum is 1 and the step is 0.1
  • slice(0, None, 0.1) should take the maximum from minmax, the minimum is 0 and the step is 0.1
  • slice(0, 1, 0.1) should be equivalent to np.arange(0, 1, 0.1)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

new featureRequest for adding a new feature to the package

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions