Closed
Description
#16527 419fafe added checks for add_subplot
that break:
import matplotlib.pyplot as plt
fig = plt.figure()
ax = fig.add_subplot(3, 4, 1)
ax2 = fig.add_subplot(3, 2, (3, 5))
plt.show()
Old behaviour
New behaviour:
ax2 = fig.add_subplot(3, 2, (3, 5))
Traceback (most recent call last):
File "testPlots.py", line 6, in <module>
ax2 = fig.add_subplot(3, 2, (3, 5))
File "/Users/jklymak/matplotlib/lib/matplotlib/figure.py", line 1376, in add_subplot
args = tuple(map(int, args))
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'