def test_probplot_pp(plot_data): fig, ax = pyplot.subplots() scatter_kws = dict( color="b", linestyle="--", markeredgecolor="g", markerfacecolor="none" ) fig = viz.probplot( plot_data, ax=ax, axtype="pp", yscale="linear", xlabel="test x", ylabel="test y", scatter_kws=scatter_kws, ) return fig
def test_probplot_pp_bestfit(plot_data): fig, ax = pyplot.subplots() scatter_kws = {"marker": "s", "color": "red"} line_kws = {"linestyle": "--", "linewidth": 3} fig = viz.probplot( plot_data, ax=ax, axtype="pp", yscale="linear", xlabel="test x", bestfit=True, ylabel="test y", scatter_kws=scatter_kws, line_kws=line_kws, ) return fig
def test_probplot_qq_bestfit(plot_data): fig, ax = pyplot.subplots() fig = viz.probplot(plot_data, ax=ax, axtype="qq", bestfit=True, ylabel="Test label") return fig
def test_probplot_prob_bestfit(plot_data): fig, ax = pyplot.subplots() fig = viz.probplot(plot_data, ax=ax, xlabel="Test xlabel", bestfit=True) assert isinstance(fig, pyplot.Figure) return fig
def test_probplot_qq(plot_data): fig, ax = pyplot.subplots() fig = viz.probplot( plot_data, ax=ax, axtype="qq", ylabel="Test label", scatter_kws=dict(color="r") ) return fig