matplotlib / matplotlib/mpl-probscale
Issue with PP-plot and different distributions
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 40
- Forks
- 11
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
* 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()
```
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par l’appel à probscale.probplot présenté dans l’issue et comparez les deux arguments dist utilisés pour les PP-plots. Déterminez si des graphiques identiques sont attendus pour ces distributions ; pour terminer, il faudrait documenter ce comportement ou le corriger s’il est incorrect.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- matplotlib, python
- Domaine
- data-visualization
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 28/100