I took this script from a matplotlib tutorial. It crashes Pythonista (latest beta) on an iPad Pro.
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0, 2, 100)
plt.plot(x, x, label='linear')
plt.plot(x, x2, label='quadratic')
plt.plot(x, x3, label='cubic')
plt.xlabel('x label')
plt.ylabel('y label')
plt.title("Simple Plot")
plt.legend()
plt.show()
