MatplotlibdeprecationWarning: Przekazywanie nie-integrów

import matplotlib.pyplot as plt
plt.subplot(int(row_num), int(row_num), index)
Wide-eyed Wolverine