Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Probability plot missing data when using 'prob' option #81

Open
jkmccaughey opened this issue Jan 7, 2022 · 2 comments
Open

Probability plot missing data when using 'prob' option #81

jkmccaughey opened this issue Jan 7, 2022 · 2 comments

Comments

@jkmccaughey
Copy link

jkmccaughey commented Jan 7, 2022

  • 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

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

@jkmccaughey
Copy link
Author

Here's a more useful plot.
Joe
NPP_v2

@phobson
Copy link
Member

phobson commented Feb 8, 2022

Thanks for the report. Where N = 100 is right on the fence where the automatic limits are set.

Should be pretty easy to fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants