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

Skip to content

mep12 changes to axes_props.py #4831

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
Jul 31, 2015
Merged

mep12 changes to axes_props.py #4831

merged 2 commits into from
Jul 31, 2015

Conversation

ericmjl
Copy link
Contributor

@ericmjl ericmjl commented Jul 30, 2015

No description provided.

@jenshnielsen jenshnielsen added the MEP: MEP12 gallery and examples improvements label Jul 30, 2015
ticklabels = ax.get_xticklabels()
ticklabels.extend( ax.get_yticklabels() )
ticklabels.extend(ax.get_yticklabels())
Copy link
Member

Choose a reason for hiding this comment

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

Could we make these calls cleaner by just concatenating the x and y lists together? Something like ticklines = ax.get_xticklines() + ax.get_yticklines()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, I'll give that a shot.

@WeatherGod
Copy link
Member

much better! Not exactly sure if it falls under MEP12, but many of these old examples haven't been updated in a long time to take advantage of newer APIs. Clear examples make for better documentation, so I am not against small modifications here and there to improve these scripts.

WeatherGod added a commit that referenced this pull request Jul 31, 2015
@WeatherGod WeatherGod merged commit 438bc94 into matplotlib:master Jul 31, 2015
@ericmjl ericmjl deleted the mep12_axes_props.py branch July 31, 2015 13:21
@ericmjl
Copy link
Contributor Author

ericmjl commented Jul 31, 2015

Okie dokes, no problem!

@QuLogic QuLogic added this to the v1.5.0 milestone Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
MEP: MEP12 gallery and examples improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants