Skip to content

Commit 340c8dc

Browse files
committed
Pushing the docs to dev/ for branch: main, commit ca0862a9dbc5dadab2ccd30828de6de0c6f1f69d
1 parent 4235c9a commit 340c8dc

File tree

1,177 files changed

+4216
-4261
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,177 files changed

+4216
-4261
lines changed
Binary file not shown.
Binary file not shown.

dev/_downloads/9b5ca5a413df494778642d75caeb33d7/plot_omp.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
plt.subplot(4, 1, 1)
4242
plt.xlim(0, 512)
4343
plt.title("Sparse signal")
44-
plt.stem(idx, w[idx], use_line_collection=True)
44+
plt.stem(idx, w[idx])
4545

4646
# plot the noise-free reconstruction
4747
omp = OrthogonalMatchingPursuit(n_nonzero_coefs=n_nonzero_coefs)
@@ -51,7 +51,7 @@
5151
plt.subplot(4, 1, 2)
5252
plt.xlim(0, 512)
5353
plt.title("Recovered signal from noise-free measurements")
54-
plt.stem(idx_r, coef[idx_r], use_line_collection=True)
54+
plt.stem(idx_r, coef[idx_r])
5555

5656
# plot the noisy reconstruction
5757
omp.fit(X, y_noisy)
@@ -60,7 +60,7 @@
6060
plt.subplot(4, 1, 3)
6161
plt.xlim(0, 512)
6262
plt.title("Recovered signal from noisy measurements")
63-
plt.stem(idx_r, coef[idx_r], use_line_collection=True)
63+
plt.stem(idx_r, coef[idx_r])
6464

6565
# plot the noisy reconstruction with number of non-zeros set by CV
6666
omp_cv = OrthogonalMatchingPursuitCV()
@@ -70,7 +70,7 @@
7070
plt.subplot(4, 1, 4)
7171
plt.xlim(0, 512)
7272
plt.title("Recovered signal from noisy measurements with CV")
73-
plt.stem(idx_r, coef[idx_r], use_line_collection=True)
73+
plt.stem(idx_r, coef[idx_r])
7474

7575
plt.subplots_adjust(0.06, 0.04, 0.94, 0.90, 0.20, 0.38)
7676
plt.suptitle("Sparse signal recovery with Orthogonal Matching Pursuit", fontsize=16)

0 commit comments

Comments
 (0)