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
“Bachelor's degrees…” picture in the gallery is cropped #6668
Comments
I'm a bit puzzled by the 2.x issue. On Master http://matplotlib.org/devdocs/examples/showcase/bachelors_degrees_by_gender.html it's much better |
A 29a30
> fig.subplots_adjust(left=.06, right=.75, bottom=.02, top=.94)
32,33c33,35
< plt.xlim(1968.5, 2011.1)
< plt.ylim(-0.25, 90)
---
> ax.set_xlim(1968.5, 2011.1)
> ax.set_ylim(-0.25, 90)
> ax.get_xaxis().get_major_formatter().set_useOffset(False)
94,95c96,97
< plt.title('Percentage of Bachelor\'s degrees conferred to women in '
< 'the U.S.A. by major (1970-2011)\n', fontsize=18, ha='center')
---
> fig.suptitle('Percentage of Bachelor\'s degrees conferred to women in '
> 'the U.S.A. by major (1970-2011)\n', fontsize=18, ha='center')
100c102
< plt.savefig('percent-bachelors-degrees-women-usa.png', bbox_inches='tight')
---
> # plt.savefig('percent-bachelors-degrees-women-usa.png', bbox_inches='tight') The x-axis formatter in the new version has been changed to not use an offset text. Besides the new line While with the code in the devdocs gallery, with the new I simply hadn't check in the example source code master repo but apparently @tacaswell already noticed the cropping issue and solve it with f649739. As the picture in the “devdocs” gallery is OK and should replace in the end the one from the current gallery, I guess I should close this issue, shouldn't I? |
The cropping issue is due to the use of I am a bit concerned that on 2.x the tick labels are still offset. |
The intention of On Thu, Jun 30, 2016 at 8:50 AM, Thomas A Caswell notifications@github.com
|
Is now rendering correctly. http://matplotlib.org/2.0.0b2/examples/showcase/bachelors_degrees_by_gender.html |
The showcase picture “bachelors_degrees_by_gender” in the gallery is cropped on the right side : the text labels are cut. It is the case in the 3 exports (PNG, HR PNG and PDF).
I ran the code of the example locally and the output PNG picture in not cropped as in the web gallery : might it be related to the website rather than MPL?
v1.5.1 and v2.0.0b1.post1628+g1aba7c3, both on Linux (CentOs 7) with Python 2.7.
anaconda for v1.5.1 and github for v2.x.
NB: with v2.x, even with
plt.style.use('default')
orplt.style.use('classic')
, the x-ticklabels are still formatted with an offset: [-30, -20, -10, 0, 10] + 2e3 instead of [1970, 1980, 1990, 2000, 2010]…The text was updated successfully, but these errors were encountered: