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 fromminmax, the maximum is1and the step is1 -
slice(None, 1, 0.1)should take the minimum fromminmax, the maximum is1and the step is0.1 -
slice(0, None, 0.1)should take the maximum fromminmax, the minimum is0and the step is0.1 -
slice(0, 1, 0.1)should be equivalent tonp.arange(0, 1, 0.1)