Closed stillmatic closed 6 years ago
Can you add the only_finite
option, I think this should do.
finite = np.isfinite(x) if only_finite else True
x[(x < range[0]) & finite] = range[0]
x[(x > range[1]) & finite] = range[1]
ok, added the parameter, please take a look!
Great. Thank you.
Released in v0.4.6
behavior is similar to scales but without a
finite_only
parameter.follow up to https://github.com/has2k1/plotnine/issues/126