“Could not connect to any X display” with gnuplot (Ubuntu for windows)
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...
And after trying set term png
, the plot command gives me this:
display environment-variables qt gnuplot
New contributor
add a comment |
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...
And after trying set term png
, the plot command gives me this:
display environment-variables qt gnuplot
New contributor
2
It looks like you're not running under an X window environment. Perhaps you should installgnuplot-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 ofshow 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
orset term png
– steeldriver
Jan 3 at 4:02
I triedset term png
. I still don get any plot but the output is different : I getPNG (բ IENDB`gnuplot>
Postscript is not doing better...
– Barbaud Julien
Jan 3 at 5:07
add a comment |
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...
And after trying set term png
, the plot command gives me this:
display environment-variables qt gnuplot
New contributor
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...
And after trying set term png
, the plot command gives me this:
display environment-variables qt gnuplot
display environment-variables qt gnuplot
New contributor
New contributor
edited Jan 3 at 7:31
New contributor
asked Jan 3 at 3:45
Barbaud Julien
1011
1011
New contributor
New contributor
2
It looks like you're not running under an X window environment. Perhaps you should installgnuplot-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 ofshow 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
orset term png
– steeldriver
Jan 3 at 4:02
I triedset term png
. I still don get any plot but the output is different : I getPNG (բ IENDB`gnuplot>
Postscript is not doing better...
– Barbaud Julien
Jan 3 at 5:07
add a comment |
2
It looks like you're not running under an X window environment. Perhaps you should installgnuplot-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 ofshow 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
orset term png
– steeldriver
Jan 3 at 4:02
I triedset term png
. I still don get any plot but the output is different : I getPNG (բ 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
add a comment |
1 Answer
1
active
oldest
votes
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 !
New contributor
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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 !
New contributor
add a comment |
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 !
New contributor
add a comment |
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 !
New contributor
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 !
New contributor
New contributor
answered Jan 3 at 9:06
Barbaud Julien
1011
1011
New contributor
New contributor
add a comment |
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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
orset 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 getPNG (բ IENDB`gnuplot>
Postscript is not doing better...– Barbaud Julien
Jan 3 at 5:07