support UnitRegistry.setup_matplotlib

Aperta
#91 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
45/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
matplotlib, python

Direzione di ricerca

Start with the .plot accessor and trace how single plots and facet grids obtain values through DataArray.values or DataArray.to_masked_array. Compare those paths with UnitRegistry.setup_matplotlib(); done means plotting without dequantifying preserves quantities so matplotlib can use its registered converter in both cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Right now, trying to use the .plot accessor without dequantifying first will strip the units so matplotlib never sees the quantities and can't use the converter registered by UnitRegistry.setup_matplotlib(). This happens for both single plots and facet grids, either because of DataArray.values or by converting to a masked array using DataArray.to_masked_array.

cc @jthielen

Lingua principale
Python
Stelle
120
Fork
17
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di xarray-contrib/pint-xarray

Tutte le issue di xarray-contrib/pint-xarray

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.