Skip to content

Commit 0bef286

Browse files
authored
Merge pull request matplotlib#31449 from cbrethick/main
Fix: improve log-scale error message wording
2 parents 04243ef + e54425d commit 0bef286

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/ticker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2485,7 +2485,7 @@ def tick_values(self, vmin, vmax):
24852485

24862486
if vmin <= 0.0 or not np.isfinite(vmin):
24872487
raise ValueError(
2488-
"Data has no positive values, and therefore cannot be log-scaled.")
2488+
"Data cannot be log-scaled because all values are <= 0.")
24892489

24902490
if vmax < vmin:
24912491
vmin, vmax = vmax, vmin

0 commit comments

Comments
 (0)