Commit c3e84b0
committed
Catch invalid interactive switch to log scale.
`plt.plot([1, 2], [-1, -2])` and press `l` (switch y to log-scale).
Before, this would crash the Qt5 backend and cause an invalid internal
state in others, due to the complete lack of positive values. Now a
warning is printed and the command is cancelled.1 parent 8c747fb commit c3e84b0
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2578 | 2578 | | |
2579 | 2579 | | |
2580 | 2580 | | |
2581 | | - | |
| 2581 | + | |
| 2582 | + | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
2582 | 2586 | | |
2583 | 2587 | | |
2584 | 2588 | | |
| |||
2587 | 2591 | | |
2588 | 2592 | | |
2589 | 2593 | | |
2590 | | - | |
| 2594 | + | |
| 2595 | + | |
| 2596 | + | |
| 2597 | + | |
| 2598 | + | |
2591 | 2599 | | |
2592 | 2600 | | |
2593 | 2601 | | |
| |||
0 commit comments