Skip to content

NEW FEATURE: use a slice for bounds formatoption

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)