“Could not connect to any X display” with gnuplot (Ubuntu for windows)












0














I have installed the Ubuntu extension for Windows, but I run into troubles when I want to use gnuplot...
I am just trying to plot a simple data file, but I get the following error :



QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.

Could not connect to existing gnuplot_qt. Starting a new one.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.


As you may guess, I am not veryfamiliar with this problem. Is there Something I should set up in my environment to fix this ?



EDIT: after the suggestion in comments, I tried to use set term postscript. The output is different, but still no plot...



plot output after set term postscript



And after trying set term png, the plot command gives me this:



enter image description here










share|improve this question









New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
    – waltinator
    Jan 3 at 3:49










  • Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
    – Barbaud Julien
    Jan 3 at 3:57












  • What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
    – steeldriver
    Jan 3 at 4:02










  • I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
    – Barbaud Julien
    Jan 3 at 5:07


















0














I have installed the Ubuntu extension for Windows, but I run into troubles when I want to use gnuplot...
I am just trying to plot a simple data file, but I get the following error :



QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.

Could not connect to existing gnuplot_qt. Starting a new one.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.


As you may guess, I am not veryfamiliar with this problem. Is there Something I should set up in my environment to fix this ?



EDIT: after the suggestion in comments, I tried to use set term postscript. The output is different, but still no plot...



plot output after set term postscript



And after trying set term png, the plot command gives me this:



enter image description here










share|improve this question









New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 2




    It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
    – waltinator
    Jan 3 at 3:49










  • Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
    – Barbaud Julien
    Jan 3 at 3:57












  • What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
    – steeldriver
    Jan 3 at 4:02










  • I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
    – Barbaud Julien
    Jan 3 at 5:07
















0












0








0







I have installed the Ubuntu extension for Windows, but I run into troubles when I want to use gnuplot...
I am just trying to plot a simple data file, but I get the following error :



QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.

Could not connect to existing gnuplot_qt. Starting a new one.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.


As you may guess, I am not veryfamiliar with this problem. Is there Something I should set up in my environment to fix this ?



EDIT: after the suggestion in comments, I tried to use set term postscript. The output is different, but still no plot...



plot output after set term postscript



And after trying set term png, the plot command gives me this:



enter image description here










share|improve this question









New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I have installed the Ubuntu extension for Windows, but I run into troubles when I want to use gnuplot...
I am just trying to plot a simple data file, but I get the following error :



QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.

Could not connect to existing gnuplot_qt. Starting a new one.

QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to
'/tmp/runtime-julien_barbaud'

qt.qpa.screen: QXcbConnection: Could not connect to display

Could not connect to any X display.


As you may guess, I am not veryfamiliar with this problem. Is there Something I should set up in my environment to fix this ?



EDIT: after the suggestion in comments, I tried to use set term postscript. The output is different, but still no plot...



plot output after set term postscript



And after trying set term png, the plot command gives me this:



enter image description here







display environment-variables qt gnuplot






share|improve this question









New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Jan 3 at 7:31





















New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Jan 3 at 3:45









Barbaud Julien

1011




1011




New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 2




    It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
    – waltinator
    Jan 3 at 3:49










  • Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
    – Barbaud Julien
    Jan 3 at 3:57












  • What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
    – steeldriver
    Jan 3 at 4:02










  • I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
    – Barbaud Julien
    Jan 3 at 5:07
















  • 2




    It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
    – waltinator
    Jan 3 at 3:49










  • Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
    – Barbaud Julien
    Jan 3 at 3:57












  • What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
    – steeldriver
    Jan 3 at 4:02










  • I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
    – Barbaud Julien
    Jan 3 at 5:07










2




2




It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
– waltinator
Jan 3 at 3:49




It looks like you're not running under an X window environment. Perhaps you should install gnuplot-nox - Command-line driven interactive plotting program. No-X package
– waltinator
Jan 3 at 3:49












Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
– Barbaud Julien
Jan 3 at 3:57






Thanks for your suggestion. However, I did install gnuplot-nox (sudo apt install gnuplot-nox) before trying to run the programm. I also installed gnuplot-qt right after
– Barbaud Julien
Jan 3 at 3:57














What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
– steeldriver
Jan 3 at 4:02




What is the output of show term (at the gnuplot prompt)? In the absence of an X server, you may need to set the terminal type to something that writes directly to file e.g. set term postscript or set term png
– steeldriver
Jan 3 at 4:02












I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
– Barbaud Julien
Jan 3 at 5:07






I tried set term png. I still don get any plot but the output is different : I get PNG (բ IENDB`gnuplot> Postscript is not doing better...
– Barbaud Julien
Jan 3 at 5:07












1 Answer
1






active

oldest

votes


















0














I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
The qt terminal works well in this condition.



Thanks for the help !






share|improve this answer








New contributor




Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.


















    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });






    Barbaud Julien is a new contributor. Be nice, and check out our Code of Conduct.










    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106465%2fcould-not-connect-to-any-x-display-with-gnuplot-ubuntu-for-windows%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
    The qt terminal works well in this condition.



    Thanks for the help !






    share|improve this answer








    New contributor




    Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0














      I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
      The qt terminal works well in this condition.



      Thanks for the help !






      share|improve this answer








      New contributor




      Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





















        0












        0








        0






        I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
        The qt terminal works well in this condition.



        Thanks for the help !






        share|improve this answer








        New contributor




        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        I could solve my problem by downloading Xming on my Windows system, so that linux can access X11
        The qt terminal works well in this condition.



        Thanks for the help !







        share|improve this answer








        New contributor




        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|improve this answer



        share|improve this answer






        New contributor




        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered Jan 3 at 9:06









        Barbaud Julien

        1011




        1011




        New contributor




        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Barbaud Julien is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






















            Barbaud Julien is a new contributor. Be nice, and check out our Code of Conduct.










            draft saved

            draft discarded


















            Barbaud Julien is a new contributor. Be nice, and check out our Code of Conduct.













            Barbaud Julien is a new contributor. Be nice, and check out our Code of Conduct.












            Barbaud Julien is a new contributor. Be nice, and check out our Code of Conduct.
















            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1106465%2fcould-not-connect-to-any-x-display-with-gnuplot-ubuntu-for-windows%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b