Please, noted that there is no histogram created after these instruction … what is the problem please iam using WSL

Hi @mutaz,

You should make sure that an X server is running (either provided by WSL or third-party, e.g. Xming).
Other than that, there’s missing whitespace between export and DISPLAY, i.e. it should be

$ export DISPLAY="localhost:0"

For this to work, access control might need to be disabled in the X11 server too. If you are using Xming, you can directly do that by checking the “No access control” checkbox in XLaunch and ensuring that “Display number” is set to 0.

Cheers,
J.

2 Likes