Commit b5f2184
committed
Fix: Do not use numeric tolerances for axline special cases
vertical lines (infinite slope) and two identical points as input need special handling in AxLine. The detection was using numeric tolerances, which lead to false-positive detection in cases that are close to but not exactly those special cases.
This PR removes the tolerances. The argument is the same as for the similar case matplotlib#28386 (comment)
Closes 28870.
Before, we only issued a warning. But we clearly cannot fulfill the intention
of a polar plot and therefore we should error out instead of just warn.
Also document that `polar()` should typically be called first to prevent having
a non-polar Axes already created.1 parent eb812a8 commit b5f2184
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1506 | 1506 | | |
1507 | 1507 | | |
1508 | 1508 | | |
1509 | | - | |
1510 | | - | |
| 1509 | + | |
| 1510 | + | |
1511 | 1511 | | |
1512 | 1512 | | |
1513 | 1513 | | |
| |||
0 commit comments