Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Third pass
  • Loading branch information
jklymak committed May 5, 2020
commit 18affbe3412dc78c7b156b66b1e6ff86e429c068
8 changes: 4 additions & 4 deletions lib/matplotlib/figure.py
Original file line number Diff line number Diff line change
Expand Up @@ -1349,10 +1349,10 @@ def add_subplot(self, *args, **kwargs):
fig.add_subplot(2, 3, 1)
ax1 = fig.add_subplot(2, 3, 1) # equivalent but more general

fig.add_subplot($1, $2, $3, frameon=False) # subplot with no frame
fig.add_subplot($1, $2, $3, projection='polar') # polar subplot
fig.add_subplot($1, $2, $3, sharex=ax1) # subplot sharing x-axis with ax1
fig.add_subplot($1, $2, $3, facecolor="red") # red subplot
fig.add_subplot(2, 3, 2, frameon=False) # subplot with no frame
fig.add_subplot(2, 3, 3, projection='polar') # polar subplot
fig.add_subplot(2, 3, 4, sharex=ax1) # subplot sharing x-axis with ax1
fig.add_subplot(2, 3, 5, facecolor="red") # red subplot

ax1.remove() # delete ax1 from the figure
fig.add_subplot(ax1) # add ax1 back to the figure
Expand Down