I am trying to use matplotlib and display result, I have yocto based image with xWayland backend (fsl-image-qt5).
import numpy as np
import matplotlib.pyplot as plt
x = np.linspace(-np.pi, np.pi, 256, endpoint=True)
c, s = np.cos(X), np.sin(X)
plt.plot(x, c)
plt.plot(x, s)
plt.show()
After running this script plot is not displayed. How to make it display window?