Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fix tutorial pyplot scales (issue #6775) #6779
Conversation
mdboom
added the
needs_review
label
Jul 17, 2016
|
Definitively, if I remove the
I don't understand everything, but it looks like |
|
Looks good. I think the tight_layout issue is something that we should investigate further. Will you create an issue for that so we can merge this without it? |
tacaswell
added this to the
2.0 (style change major release)
milestone
Jul 17, 2016
tacaswell
merged commit a4fdd60
into matplotlib:master
Jul 18, 2016
tacaswell
removed the
needs_review
label
Jul 18, 2016
tacaswell
added a commit
that referenced
this pull request
Jul 18, 2016
|
|
tacaswell |
e2b1184
|
|
backported to v2.x as e2b1184 |
QuLogic
added the
Documentation
label
Jul 18, 2016
afvincent
referenced
this pull request
Jul 18, 2016
Open
Tutorial pyplot_scales.py crashes when used with plt.tight_layout() #6789
|
@jenshnielsen I've just created a dedicated issue (#6789) as you suggested. |
|
Thanks @afvincent thats great and a very detailed issue :) |
afvincent
referenced
this pull request
Jul 23, 2016
Merged
DOC: Fix a few typos and formulations #6817
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
afvincent commentedJul 17, 2016
Fix #6775.
The issue reports among other things a poor choice of x-ticks. However, this seems to be OK in the devdocs version (http://matplotlib.org/devdocs/users/pyplot_tutorial.html)
I suppressed the minor y tick labels in the case of the logit scale, to keep only the major ones. To do so, I used a
NullFormatter: is it OK for a pyplot tutorial? First I wanted to simply useplt.minorticks_offbut it hides the nice feature of the logit scale, which is to be log in some range and linear in another range.Furthermore, I slightly tweaked the
linthreshyvalue in the case of the symlog case, to avoid overlapping some of the y tick labels.The current PR should produce things similar to

I precise “similar” because depending on the random samples, the tick range of the axes may be different.
PS: I got weird crashes when trying to use
plt.tight_layoutto adjust the subplots. I'll see if it comes from my machine or is a real issue, and I will open report another issue in the latter case. And for the moment, I have simply defined by hand some correct values inplt.subplots_adjust.