Skip to content

Commit f1388af

Browse files
committed
new qq test with fully-spec'd dist
1 parent abe0fd5 commit f1388af

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Loading

probscale/tests/test_viz.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,15 @@ def test_probplot_qq(plot_data):
392392
return fig
393393

394394

395+
@pytest.mark.mpl_image_compare(baseline_dir=BASELINE_DIR, tolerance=10)
396+
def test_probplot_qq_dist(plot_data):
397+
fig, ax = plt.subplots()
398+
norm = stats.norm(*stats.norm.fit(plot_data))
399+
fig = viz.probplot(plot_data, ax=ax, plottype='qq', dist=norm,
400+
datalabel='Test label')
401+
return fig
402+
403+
395404
@pytest.mark.mpl_image_compare(baseline_dir=BASELINE_DIR, tolerance=10)
396405
def test_probplot_pp(plot_data):
397406
fig, ax = plt.subplots()

0 commit comments

Comments
 (0)