Commit 527faa4
committed
Small improvements to aitoff projection.
- Use np.sinc instead of rewriting it ourselves. (This way, if numpy
ever switches sinc to C, we get the speedup too.)
- Make InvertedAitoff return nan (which is clearly suggests "we can't
compute this") instead of being a noop (which makes it return
nonsensical data with no user warning). AFAICT this is only used
to print mouseover coordinates. See e.g.
`subplots_axes_and_figures/geo_demo.py` where the mouseover
coordinates for aitoff were just completely wrong.1 parent ff15ca9 commit 527faa4
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 267 | + | |
271 | 268 | | |
272 | 269 | | |
273 | 270 | | |
| |||
282 | 279 | | |
283 | 280 | | |
284 | 281 | | |
285 | | - | |
| 282 | + | |
286 | 283 | | |
287 | 284 | | |
288 | 285 | | |
| |||
0 commit comments