8000 Fix dropped api method of Rectangle in Artists Tutorial. · matplotlib/matplotlib@6002943 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6002943

Browse files
committed
Fix dropped api method of Rectangle in Artists Tutorial.
1 parent 6f060eb commit 6002943

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tutorials/intermediate/artists.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class in the matplotlib API, and the one you will be working with most
423423
# In [263]: rect = matplotlib.patches.Rectangle( (1,1), width=5, height=12)
424424
#
425425
# # by default the axes instance is None
426-
# In [264]: print(rect.get_axes())
426+
# In [264]: print(rect.axes)
427427
# None
428428
#
429429
# # and the transformation instance is set to the "identity transform"
@@ -435,7 +435,7 @@ class in the matplotlib API, and the one you will be working with most
435435
#
436436
# # and notice that the ax.add_patch method has set the axes
437437
# # instance
438-
# In [267]: print(rect.get_axes())
438+
# In [267]: print(rect.axes)
439439
# Axes(0.125,0.1;0.775x0.8)
440440
#
441441
# # and the transformation has been set too

0 commit comments

Comments
 (0)
0