AnsweredAssumed Answered

matplotlib under Yocto to display result

Question asked by Erik Raynolds on Nov 27, 2018
Latest reply on Dec 6, 2018 by Erik Raynolds

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?

Outcomes