Skip to content

Commit

Permalink
Remove eigenvectors from concentration demo
Browse files Browse the repository at this point in the history
  • Loading branch information
nperraud authored Mar 29, 2019
1 parent f66b009 commit 7b3884b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/eigenvalue_concentration.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import pygsp as pg

n_neighbors = [1, 2, 5, 8]
fig, axes = plt.subplots(4, len(n_neighbors), figsize=(15, 10))
fig, axes = plt.subplots(3, len(n_neighbors), figsize=(15, 8))

for k, ax in zip(n_neighbors, axes.T):

Expand All @@ -22,8 +22,8 @@
ax[1].spy(graph.W)
ax[2].plot(graph.e, '.')
ax[2].set_title('k={}'.format(k))
graph.set_coordinates('line1D')
graph.plot(graph.U[:, :4], ax=ax[3], title='')
#graph.set_coordinates('line1D')
#graph.plot(graph.U[:, :4], ax=ax[3], title='')

# Check that the DFT matrix is an eigenbasis of the Laplacian.
U = np.fft.fft(np.identity(graph.n_vertices))
Expand Down

0 comments on commit 7b3884b

Please sign in to comment.