8000 [MRG] improving examples/mixture/plot_gmm_covariances.py visualisation by josephsalmon · Pull Request #12683 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

[MRG] improving examples/mixture/plot_gmm_covariances.py visualisation #12683

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
Nov 27, 2018

Conversation

josephsalmon
Copy link
Contributor

Reference Issues/PRs

This is a one line patch to make ratio equals when visualizing the four plots in plot_gmm_covariances.py.
Before the patch, the "spherical" case is visualized in a way that make the covariances appear non-spherical (top left image). This is confusing w.r.t. the name of the plot, and could lead to users misunderstanding.

What does this implement/fix? Explain your changes.

Adding the following line:

ax.set_aspect('equal', 'datalim')

solved the problem, and make spheres appearing as spheres (not as ellipsoids) where needed. Also this improved readability of the global figure.

@josephsalmon josephsalmon changed the title [WIP] improving examples/mixture/plot_gmm_covariances.py visualisation [MRG] improving examples/mixture/plot_gmm_covariances.py visualisation Nov 27, 2018
Copy link
Member
@rth rth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@rth rth merged commit aa331ee into scikit-learn:master Nov 27, 2018
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
xhluca pushed a commit to xhluca/scikit-learn that referenced this pull request Apr 28, 2019
koenvandevelde pushed a commit to koenvandevelde/scikit-learn that referenced this pull request Jul 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0