Skip to content

Reduce redudant code in axes_grid{,1}.colorbar #4890

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 1 commit into from
Aug 12, 2015

Conversation

sargas
Copy link
Contributor

@sargas sargas commented Aug 8, 2015

When mpl_toolkits.axes_grid was made into, essentially, a wrapper for mpl_toolkits.axes_grid1, the mpl_toolkits.axes_grid.colorbar was copied instead of moved. Today, this results in mpl_toolkits.axes_grid.colorbar and mpl_toolkits.axes_grid1.colorbar being identical except for a few lines.

This PR fixes that. The only practical change is to apply PR #630 to axes_grid's version of colorbar.

Remove redudant code by using axes_grid1's implementation
@tacaswell tacaswell added this to the proposed next point release milestone Aug 9, 2015
@tacaswell
Copy link
Member

For the record also changes 2 docstrings.

tacaswell added a commit that referenced this pull request Aug 12, 2015
MNT: Reduce redudant code in axes_grid{,1}.colorbar
@tacaswell tacaswell merged commit 8242f57 into matplotlib:master Aug 12, 2015
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.

2 participants