-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
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
DOC: OO interface in api and other examples #7067
Conversation
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) |
There was a problem hiding this comment.
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.
4655ddd
to
c57cf8a
Compare
There was a problem hiding this 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() |
There was a problem hiding this comment.
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.
Hi @phobson |
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.
c57cf8a
to
32301f0
Compare
@NelleV oops -- sorry for the delay. took care of that just now. |
DOC: OO interface in api and other examples
backported to v2.x as c729682 |
some more like #7066