Skip to content

DOC reformatting example as notebook style - #20543

Merged
rth merged 7 commits into
scikit-learn:mainfrom
glemaitre:is/14226
Jul 19, 2021
Merged

rth merged 7 commits into
scikit-learn:mainfrom
glemaitre:is/14226

Conversation

@glemaitre

Copy link
Copy Markdown
Member

closes #14226

@glemaitre
glemaitre marked this pull request as draft July 16, 2021 12:52
@glemaitre
glemaitre marked this pull request as ready for review July 16, 2021 22:01

@thomasjpfan thomasjpfan left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thank you for the PR @glemaitre !

Minor comment on the figure sizing. Otherwise LGTM

Comment thread examples/manifold/plot_lle_digits.py Outdated
# Finally, we can plot the resulting projection given by each method.
from itertools import zip_longest

fig, axs = plt.subplots(nrows=7, ncols=2, figsize=(15, 30))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

To make the figures look a little better and fill up the space:

fig, axs = plt.subplots(nrows=7, ncols=2, figsize=(12, 24))

...

fig.tight_layout()
plt.show()

Using zip_longest longest here is nice. :)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks I was indeed searching for the best sizing :)

@rth rth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC make plot_lle_digits more consistent

3 participants