Skip to content

Commit 35cb8a5

Browse files
committed
Update invalid axis limit warning message
1 parent 1f675ad commit 35cb8a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/axes/_base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2865,7 +2865,7 @@ def set_xlim(self, left=None, right=None, emit=True, auto=False, **kw):
28652865
if self.get_xscale() == 'log' and (left <= 0.0 or right <= 0.0):
28662866
warnings.warn(
28672867
'Attempted to set non-positive xlimits for log-scale axis; '
2868-
'automatically adjusting.')
2868+
'invalid limits will be ignored.')
28692869
left, right = self.xaxis.limit_range_for_scale(left, right)
28702870

28712871
self.viewLim.intervalx = (left, right)
@@ -3130,7 +3130,7 @@ def set_ylim(self, bottom=None, top=None, emit=True, auto=False, **kw):
31303130
if self.get_yscale() == 'log' and (bottom <= 0.0 or top <= 0.0):
31313131
warnings.warn(
31323132
'Attempted to set non-positive ylimits for log-scale axis; '
3133-
'automatically adjusting.')
3133+
'invalid limits will be ignored.')
31343134
bottom, top = self.yaxis.limit_range_for_scale(bottom, top)
31353135

31363136
self.viewLim.intervaly = (bottom, top)

0 commit comments

Comments
 (0)