You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{alt='Plot of sin curve for degrees between 0-180'}
346
347
348
+
::::::::::::::::: callout
349
+
NOTE
350
+
The call to `quantity_support()` is required to "patch" `matplotlib` to recognize the `astropy.units`, and it will affect anything you plot from that point onward.
351
+
If you only need `quantity_support` for some plots, you can use a _context manager_:
352
+
353
+
```python
354
+
with quantity_support():
355
+
plt.plot(angles, np.sin(angles))
356
+
```
357
+
:::::::::::::::::::::::::
358
+
347
359
## Temperature
348
360
349
361
Each of the temperature scales is considered as using an irreducible unit in standard usage. As a consequence of this we need to always specify that we are using the `u.temperature` equivalences when we convert between these:
0 commit comments