Closed ferrigno closed 3 years ago
This is due to an API change in Astropy 4.1 that broke compatibility with Matplotlib by making SkyCoord instances unhashable. I've submitted a patch to Matplotlib to fix this (see matplotlib/matplotlib#18832, matplotlib/matplotlib#18978, matplotlib/matplotlib#19153). As a temporary workaround until the Matplotlib issue is fixed, please downgrade to an older version of Astropy:
pip install 'astropy < 4.1'
Thanks.
My workaround has been center = SkyCoord.from_name('NGC 4993') center_str = '%fd %fd'%(center.ra.deg, center.dec.deg) ... ax = plt.axes( [0.05, 0.05, 0.9, 0.9], projection='astro globe', center=center_str)
Yes, that's a clever workaround!
TypeError Traceback (most recent call last)