Skip to content

DOC reformatting example as notebook style#20543

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

DOC reformatting example as notebook style#20543
rth merged 7 commits intoscikit-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
Copy link
Copy Markdown
Member

@thomasjpfan thomasjpfan left a comment

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

# 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 :)

Copy link
Copy Markdown
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 1d7d628 into scikit-learn:main Jul 19, 2021
samronsin pushed a commit to samronsin/scikit-learn that referenced this pull request Nov 30, 2021
Co-authored-by: Guillaume Lemaitre <glemaitre@Guillaumes-MacBook-Air.local>
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