remove#
- Hist2d.remove(xlower=None, xupper=None, ylower=None, yupper=None, setval=0.0)[source]#
Return a new histogram with bins within the specified (x, y) range set to setval.
- Parameters:
- xlower
floatorNone Lower bound of x-axis to remove (inclusive). If None, no lower bound.
- xupper
floatorNone Upper bound of x-axis to remove (exclusive). If None, no upper bound.
- ylower
floatorNone Lower bound of y-axis to remove (inclusive). If None, no lower bound.
- yupper
floatorNone Upper bound of y-axis to remove (exclusive). If None, no upper bound.
- setval
float, default 0.0 Value to assign to bins within the removed region.
- xlower
- Returns:
Hist2dA new histogram with the specified region “removed” (set to setval).