8000 final changes · satra/scikit-learn@9a15d93 · GitHub
[go: up one dir, main page]

Skip to content 10000

Commit 9a15d93

Browse files
jaquesgrobleramueller
authored andcommitted
final changes
1 parent 4fb669e commit 9a15d93

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/manifold/plot_manifold_sphere.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,14 +67,13 @@
6767
pl.suptitle("Manifold Learning with %i points, %i neighbors"
6868
% (1000, n_neighbors), fontsize=14)
6969

70+
ax = fig.add_subplot(241, projection='3d')
71+
ax.scatter(x, y, z, c=p[indices], cmap=pl.cm.rainbow)
7072
try:
7173
# compatibility matplotlib < 1.0
72-
ax = fig.add_subplot(241, projection='3d')
73-
ax.scatter(x, y, z, c=p[indices], cmap=pl.cm.rainbow)
7474
ax.view_init(40, -10)
7575
except:
76-
ax = fig.add_subplot(241, projection='3d')
77-
pl.scatter(x, y, z, c=p[indices], cmap=pl.cm.rainbow)
76+
pass
7877

7978
sphere_data = np.array([x, y, z]).T
8079

0 commit comments

Comments
 (0)
0