8000 DOC: OO interface in api and other examples by phobson · Pull Request #7067 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

DOC: OO interface in api and other examples #7067

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 3 commits into from
Oct 11, 2016

Conversation

phobson
Copy link
Member
@phobson phobson commented Sep 9, 2016

some more like #7066

rect = plt.Rectangle((-1, -1), 2, 2, facecolor="#aaaaaa")
plt.gca().add_patch(rect)
bbox = Bbox.from_bounds(-1, -1, 2, 2)
left, lower, width, height = (-1, -1, 2, 2)
Copy link
Member

Choose a reason for hiding this comment

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

I'd use bottom instead of lower.

@phobson phobson force-pushed the oo-interface-api-examples branch from 4655ddd to c57cf8a Compare September 9, 2016 15:40
Copy link
Member
@NelleV NelleV left a comment

Choose a reason for hiding this comment

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

Apart from my comment (which is the line that break the tests), this looks good.

@@ -41,6 +42,6 @@

# The 'extend' kwarg does not work yet with a log scale.

cbar = plt.colorbar()
cbar = fig.colorbar()
Copy link
Member

Choose a reason for hiding this comment

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

This line does not work. You need to pass the mappable (cs) to this function.

@NelleV
Copy link
Member
NelleV commented Oct 8, 2016

Hi @phobson
There is still a small fix to be made on this PR. Do you think you'll find time to do it?

@tacaswell tacaswell added this to the 2.0.1 (next bug fix release) milestone Oct 9, 2016
The main thing here is that we have multiple axes and
use the `fig.colorbar` method, specifying which mappables
should be colorbar'd next to which Axes.
@phobson phobson force-pushed the oo-interface-api-examples branch from c57cf8a to 32301f0 Compare October 10, 2016 15:20
@phobson
Copy link
Member Author
phobson commented Oct 10, 2016

@NelleV oops -- sorry for the delay. took care of that just now.

@tacaswell tacaswell merged commit cb89c38 into matplotlib:master Oct 11, 2016
tacaswell added a commit that referenced this pull request Oct 11, 2016
DOC: OO interface in api and other examples
@tacaswell
Copy link
Member

backported to v2.x as c729682

@phobson phobson deleted the oo-interface-api-examples branch October 12, 2016 15:02
@QuLogic QuLogic modified the milestones: 2.0.1 (next bug fix release), 2.0 (style change major release) Dec 7, 2016
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.

7 participants
0