Commit e116225
Skip secondary_y auto-detection when addplot data is all NaN
When all values in an addplot column are NaN, the filtered array `yd`
is empty. Calling np.nanmax() or np.nanmin() on an empty array raises
ValueError. Guard against this by checking len(yd) before computing
min/max, and default to the primary y-axis when there is no real data.
Fixes #6721 parent 493811d commit e116225
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
1109 | | - | |
1110 | | - | |
| 1108 | + | |
| 1109 | + | |
| 1110 | + | |
| 1111 | + | |
| 1112 | + | |
| 1113 | + | |
1111 | 1114 | | |
1112 | 1115 | | |
1113 | 1116 | | |
| |||
0 commit comments