Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b8110fe

Browse files
Fix n sample size plotting. Add type hint to plotting methods
1 parent 6319dae commit b8110fe

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

‎sysidentpy/utils/plotting.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,17 @@ def plot_results(
9696
def plot_residues_correlation(
9797
data=None,
9898
*,
99-
figsize=(10, 6),
100-
n=100,
101-
style="default",
102-
facecolor="white",
103-
title="Residual Analysis",
104-
ylabel="Correlation",
105-
):
99+
figsize: Tuple[int, int] =(10, 6),
100+
n: int=100,
101+
style: str="default",
102+
facecolor: str="white",
103+
title: str="Residual Analysis",
104+
ylabel: str="Correlation",
105+
)->None:
106106
plt.style.use(style)
107107
plt.rcParams["axes.facecolor"] = facecolor
108108
_, ax = plt.subplots(figsize=figsize, facecolor=facecolor)
109-
ax.plot(data[0], color="#1f77b4")
109+
ax.plot(data[0][:n], color="#1f77b4")
110110
ax.axhspan(data[1], data[2], color="#ccd9ff", alpha=0.5, lw=0)
111111
ax.set_xlabel("Lag", fontsize=14)
112112
ax.set_ylabel(ylabel, fontsize=14)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /