Skip to content

Commit 6946ed2

Browse files
committed
probplot - fit arg for consistency in latest statsmodels
1 parent 543a60d commit 6946ed2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

appelpy/diagnostics.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def pp_plot(residual_values, *, ax=None):
9494

9595
if ax is None:
9696
ax = plt.gca()
97-
prob_plot = sm.ProbPlot(residual_values)
97+
prob_plot = sm.ProbPlot(residual_values, fit=True)
9898
fig = prob_plot.ppplot(ax=ax, color='tab:blue', markersize=4,
9999
line='45') # Figure returned is passed to subplot
100100
ax.grid(True, linewidth=0.5)
@@ -119,7 +119,7 @@ def qq_plot(residual_values, *, ax=None):
119119

120120
if ax is None:
121121
ax = plt.gca()
122-
prob_plot = sm.ProbPlot(residual_values)
122+
prob_plot = sm.ProbPlot(residual_values, fit=True)
123123
fig = prob_plot.qqplot(ax=ax, line='s', color='tab:blue',
124124
markersize=4) # Figure to be passed to subplot
125125
ax.grid(True, linewidth=0.5)

0 commit comments

Comments
 (0)