matplotlib / matplotlib/mpl-probscale

Issue with PP-plot and different distributions

Offen
#64 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

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

Beschreibung

  • Python version: Python 3.6.8
  • numpy version: 1.14.3
  • matplotlib version: 2.0.2
  • mpl-probscale version: 0.2.3
  • Operating System: MacOS Mojave 10.14.3
Description

I tried modifying the examples from the documentation and created two PP-plots: one using Standard Normal Distribution as the theoretical distribution, another one using N(100, 5). And both plots look exactly the same (this is not true for QQ-plots). Am I missing something?

What I Did
import warnings
warnings.simplefilter('ignore')

import numpy
from matplotlib import pyplot
import seaborn
from scipy import stats
import probscale
clear_bkgd = {'axes.facecolor':'none', 'figure.facecolor':'none'}
seaborn.set(style='ticks', context='talk', color_codes=True, rc=clear_bkgd)

# load up some example data from the seaborn package
tips = seaborn.load_dataset("tips")

%matplotlib inline
%config InlineBackend.figure_format ='retina'

common_opts = dict(
    plottype='pp',
    probax='x',
    datascale='log',
    datalabel='Total Bill (USD)',
    scatter_kws=dict(marker='+', linestyle='none', mew=1)
)

norm = stats.norm(100, 5)

fig, (ax1, ax2) = pyplot.subplots(figsize=(10, 6), ncols=2, sharex=True)
fig = probscale.probplot(tips['total_bill'], ax=ax1, dist=norm,
                         problabel='N(100, 5) Probabilities', **common_opts)

fig = probscale.probplot(tips['total_bill'], ax=ax2, dist=None,
                         problabel='Standard Normal Probabilities', **common_opts)

seaborn.despine()

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

Beginnen Sie mit dem im Issue gezeigten Aufruf von probscale.probplot und vergleichen Sie die beiden für die PP-Plots verwendeten dist-Argumente. Bestimmen Sie, ob für diese Verteilungen identische Plots erwartet werden; zum Abschluss müsste das Verhalten dokumentiert oder behoben werden, falls es nicht korrekt ist.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
matplotlib, python
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
28/100

Neue Issues direkt in Ihr Postfach

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