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
Trying to set_ylim(bottom=0) on a log scaled axis changes plot #7733
/home/dstansby/matplotlib/lib/matplotlib/axes/_base.py:3174: UserWarning: Attempted to set non-positive ylimits for log-scale axis; invalid limits will be ignored.
'Attempted to set non-positive ylimits for log-scale axis; '
However, the 2nd plot is changed by the set_ylim(bottom=0) call, and no data is visible.
See also the discussion at #7460 and the related PR #7744. It would be nice to have a consistent behavior in both cases (and possibly reuse the same code-path, if possible). As argued in #7460, I personally prefer the behavior of #7735 (treat invalid values as nan).
Activity
anntzer commentedon Jan 13, 2017
See also the discussion at #7460 and the related PR #7744. It would be nice to have a consistent behavior in both cases (and possibly reuse the same code-path, if possible). As argued in #7460, I personally prefer the behavior of #7735 (treat invalid values as nan).