Thanks to visit codestin.com
Credit goes to github.com

Skip to content

gridspec tutorial edits #11802

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 2 commits into from
Aug 6, 2018
Merged

Conversation

fredrik-1
Copy link
Contributor

@fredrik-1 fredrik-1 commented Jul 30, 2018

Some small edit to the gridspec tutorial.

  1. Fixed two links to the documentation (I hope).
  2. Added figure kwarg to the gridspec in figure 2 so that it works with constrained_layout.
  3. Deleted tight_layout in figure 6.
  4. Added and changed some figure and axes numbers to show the example numbers. This was used in same of the examples before but not in all.

edit: The plot rendering are fixed with #11801

@fredrik-1 fredrik-1 force-pushed the gridspec_tutorial branch from 1a853e2 to d695a56 Compare July 30, 2018 14:46
@fredrik-1 fredrik-1 force-pushed the gridspec_tutorial branch from d695a56 to 5f3449d Compare July 30, 2018 15:20
Copy link
Member

@jklymak jklymak left a comment

Choose a reason for hiding this comment

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

This is great. My only complaint is numbering all the figures and axes etc. I really think that is less than helpful except to be consistent w/ what was done before. If I were to do a big edit like this, I'd go exactly the opposite direction and remove all these.

@@ -235,23 +232,23 @@
def squiggle_xy(a, b, c, d, i=np.arange(0.0, 2*np.pi, 0.05)):
return np.sin(i*a)*np.cos(i*b), np.sin(i*c)*np.cos(i*d)


fig = plt.figure(figsize=(8, 8), constrained_layout=False)
10
Copy link
Member

Choose a reason for hiding this comment

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

Is this extraneous?

@tacaswell tacaswell added this to the v3.0 milestone Aug 5, 2018
@tacaswell
Copy link
Member

A nice thing about numbering them all is if you do python -i example.py you get refs to all of the figures.

Copy link
Member

@tacaswell tacaswell left a comment

Choose a reason for hiding this comment

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

👍 to merge when CI re-passes.

@jklymak jklymak merged commit 108501c into matplotlib:master Aug 6, 2018
@fredrik-1 fredrik-1 deleted the gridspec_tutorial branch August 7, 2018 10:15
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.

3 participants