You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
spurious warning with nans in log-scale plot #7143
/usr/lib/python3.5/site-packages/matplotlib/scale.py:93: RuntimeWarning: invalid value encountered in less_equal
mask = a <= 0.0
due to the comparison that involves a nan. I think this warning should be masked out (likely with the application of a np.errstate at the right place), given that nans are (AFAIK) a fully supported mechanism for hiding a point in a plot, and e.g. do not raise any warning in linear scale.
I agree. The function below that one will need the same treatment. Also _clip_non_logit and _mask_non_logit farther down. It's not clear why these pairs of nearly-identical functions are implemented differently. Direct indexing appears to be faster than using where.
Activity
efiring commentedon Sep 20, 2016
I agree. The function below that one will need the same treatment. Also
_clip_non_logitand_mask_non_logitfarther down. It's not clear why these pairs of nearly-identical functions are implemented differently. Direct indexing appears to be faster than usingwhere.tacaswell commentedon Sep 20, 2016
Probably related to #7129
Are these warnings new in numpy 1.11?