8000 Examples cleanup: remove pl.close, it is now handled by gen_rst. · seckcoder/scikit-learn@0d6d377 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0d6d377

Browse files
author
Fabian Pedregosa
committed
Examples cleanup: remove pl.close, it is now handled by gen_rst.
1 parent c07f957 commit 0d6d377

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

examples/plot_covariance_estimation.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040

4141
###############################################################################
4242
# Plot results
43-
pl.close('all')
4443
pl.loglog(shrinkages, negative_logliks)
4544
pl.xlabel('Shrinkage')
4645
pl.ylabel('Negative log-likelihood')

examples/plot_ica_vs_pca.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ def plot_samples(S, axis_list=None):
7777
pl.xlabel('$x$')
7878
pl.ylabel('$y$')
7979

80-
pl.close('all')
8180
pl.subplot(2, 2, 1)
8281
plot_samples(S / S.std())
8382
pl.title('True Independant Sources')

examples/plot_permutation_test_for_classification.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
print __doc__
1818

1919
import numpy as np
20+
import pylab as pl
2021

2122
from scikits.learn.svm import SVC
2223
from scikits.learn.cross_val import StratifiedKFold, permutation_test_score
@@ -49,15 +50,13 @@
4950

5051
###############################################################################
5152
# View histogram of permutation scores
52-
import pylab as pl
53-
pl.close('all')
5453
pl.hist(permutation_scores, label='Permutation scores')
5554
ylim = pl.ylim()
5655
pl.vlines(score, ylim[0], ylim[1], linestyle='--',
57-
color='g', linewidth=3, label='Classification Score'
58-
' (pvalue %s)' % pvalue)
56+
color='g', linewidth=3, label='Classification Score'
57+
' (pvalue %s)' % pvalue)
5958
pl.vlines(1.0 / n_classes, ylim[0], ylim[1], linestyle='--',
60-
color='k', linewidth=3, label='Luck')
59+
color='k', linewidth=3, label='Luck')
6160
pl.ylim(ylim)
6261
pl.legend()
6362
pl.xlabel('Score')

0 commit comments

Comments
 (0)
0