matplotlib / matplotlib/mpl-probscale

Probability plot missing data when using 'prob' option

Offen
#81 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
40
Forks
11
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

* Python version: 3.7.6
* numpy version: 1.19.2
* matplotlib version: 3.3.2
* mpl-probscale version: 0.2.5
* Operating System: Windows 10
Running in jupyter notebook.

### Description
I generated 100 data points (norm.rvs) and plotted the results using probscale. I've got two plots -- one uses 'prob' and the other uses 'qq' for the y-axis. The plot that uses qq shows all the data, while the plot that uses prob does not show all the data.

### What I Did
```python
fig, (ax1, ax2) = pyplot.subplots(figsize=(12,6), ncols=2, sharex=False)
common_opts = dict(
probax='y',
datascale='linear',
datalabel='',
scatter_kws=dict(marker='o', linestyle='none')
)

df2 = norm.rvs(0,1,size=100)
fig = probscale.probplot(df2, ax=ax1, plottype='prob', bestfit=False, problabel='Probability', color='xkcd:ocean green', **common_opts)
fig = probscale.probplot(df2, ax=ax2, plottype='qq', bestfit=False, problabel='Standard Normal Quantiles', color='xkcd:blue gray', **common_opts)
```

### What else?
If I set the y limits for the 'prob' case to something wider than the defaults, I can see the data points that were being left out.

Thanks,
Joe
![NPP_prob_qq](https://user-images.githubusercontent.com/67201793/148616457-e67bd6e5-183d-4313-97a8-56c14a154aba.png)

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, das bereitgestellte Python-Beispiel in einem Jupyter-Notebook mit mpl-probscale 0.2.5 auszuführen, und vergleiche die prob- und qq-Plots sowie ihre standardmäßigen y-Achsenlimits. Verfolge den vom probplot für plottype='prob' verwendeten Plotting-Pfad; als abgeschlossen gilt die Aufgabe, wenn alle 100 erzeugten Punkte sichtbar sind, ohne die y-Achsenlimits manuell zu erweitern.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
matplotlib, python
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.