8000 [MRG + 2] Correct figure number + matplotlib 2 by mathurinm · Pull Request #8483 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG + 2] Correct figure number + matplotlib 2 #8483

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/modules/mixture.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ more uniform weights when the type of prior is 'dirichlet_distribution' while
this is not necessarily the case for the 'dirichlet_process' type (used by
default).

.. |plot_bgmm| image:: ../auto_examples/mixture/images/sphx_glr_plot_concentration_prior_002.png
.. |plot_bgmm| image:: ../auto_examples/mixture/images/sphx_glr_plot_concentration_prior_001.png
:target: ../auto_examples/mixture/plot_concentration_prior.html
:scale: 48%

Expand Down
3 changes: 2 additions & 1 deletion examples/mixture/plot_concentration_prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def plot_results(ax1, ax2, estimator, X, y, title, plot_title=False):
ax2.get_xaxis().set_tick_params(direction='out')
ax2.yaxis.grid(True, alpha=0.7)
for k, w in enumerate(estimator.weights_):
ax2.bar(k - .45, w, width=0.9, color='#56B4E9', zorder=3)
ax2.bar(k, w, width=0.9, color='#56B4E9', zorder=3,
align='center')
ax2.text(k, w + 0.007, "%.1f%%" % (w * 100.),
horizontalalignment='center')
ax2.set_xlim(-.6, 2 * n_components - .4)
Expand Down
0