8000 Correct figure number + matplotlib 2 (#8483) · scikit-learn/scikit-learn@b379060 · GitHub
[go: up one dir, main page]

Skip to content

Commit b379060

Browse files
mathurinmlesteve
authored andcommitted
Correct figure number + matplotlib 2 (#8483)
1 parent 2709531 commit b379060

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/modules/mixture.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ more uniform weights when the type of prior is 'dirichlet_distribution' while
188188
this is not necessarily the case for the 'dirichlet_process' type (used by
189189
default).
190190

191-
.. |plot_bgmm| image:: ../auto_examples/mixture/images/sphx_glr_plot_concentration_prior_002.png
191+
.. |plot_bgmm| image:: ../auto_examples/mixture/images/sphx_glr_plot_concentration_prior_001.png
192192
:target: ../auto_examples/mixture/plot_concentration_prior.html
193193
:scale: 48%
194194

examples/mixture/plot_concentration_prior.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def plot_results(ax1, ax2, estimator, X, y, title, plot_title=False):
7070
ax2.get_xaxis().set_tick_params(direction='out')
7171
ax2.yaxis.grid(True, alpha=0.7)
7272
for k, w in enumerate(estimator.weights_):
73-
ax2.bar(k - .45, w, width=0.9, color='#56B4E9', zorder=3)
73+
ax2.bar(k, w, width=0.9, color='#56B4E9', zorder=3,
74+
align='center')
7475
ax2.text(k, w + 0.007, "%.1f%%" % (w * 100.),
7576
horizontalalignment='center')
7677
ax2.set_xlim(-.6, 2 * n_components - .4)

0 commit comments

Comments
 (0)
0