-
-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
Milestone
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'
Metadata
Metadata
Assignees
Labels
Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.For bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.