Skip to content

Commit

Permalink
fix broken string
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeff committed Apr 29, 2020
1 parent 00443d4 commit f1167d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/eigenvector_localization.py
Expand Up @@ -24,7 +24,7 @@
from matplotlib import pyplot as plt
import pygsp as pg

fig, axes = plt.subplots(2, 2, figsize=(10, 10))#, sharey=True)
fig, axes = plt.subplots(2, 2, figsize=(10, 10))

for w, ax in zip([10, 1, 0.1, 0.01], axes.flatten()):

Expand All @@ -44,8 +44,8 @@
ax.legend([f'$u_{i}(v)$, $\lambda_{i}={graph.e[i]:.1f}$' for i in
range(graph.n_vertices)], loc='upper right')

ax.text(-0.1, 0.9, f'coherence $={graph.coherence:.2f} \in
[{1/np.sqrt(graph.n_vertices)}, 1]$')
ax.text(-0.1, 0.9, f'coherence = {graph.coherence:.2f}'
f'$\in [{1/np.sqrt(graph.n_vertices)}, 1]$')

# Plot vertices.
ax.set_xticks(range(graph.n_vertices))
Expand Down

0 comments on commit f1167d3

Please sign in to comment.