in Education by
How can I ask the user to enter a value during the execution of a GnuPlot script? I would like to use stdin to initialize some plotting parameters. I have try to call : a=system("read") and pause mouse keypressed Without sucess. Any help welcomed. Thanks JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
I assume you are on Linux. Your shell command must write something to stdout which gnuplot can read from stdin. Something like this should work: print "Pleaser enter a number: " a = system("read a; echo $a") plot a*sin(x) pause mouse close Would it be an alternative to write a script in bash, python, ... which reads user input and calls gnuplot afterwards? (The links are my first google results, I have mainly read the title.)

Related questions

0 votes
    How do you handle a situation in which unexpected errors occur during the execution of a script?...
asked Oct 19, 2020 in Technology by JackTerrance
0 votes
    Write a program to read name of 10 student from keyboard and arrange them alphabetically. Select the correct answer from above options...
asked Dec 21, 2021 in Education by JackTerrance
0 votes
    Which mode allows us to run program interactively while watching source code and variables during execution? (a) ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    Which mode allows us to run program interactively while watching source code and variables during execution? (a ... for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    _______ means that data used during the execution of a transaction cannot be used by a second transaction ... Database Interview Questions and Answers for Freshers and Experience...
asked Oct 11, 2021 in Education by JackTerrance
0 votes
    _______ means that data used during the execution of a transaction cannot be used by a second transaction ... Schemes topic in section Concurrency Control of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    What about the Stack segment in .COM program during execution: Must be defined explicitly in the program DOS uses the ... stack for .COM program during execution none of the above...
asked May 1, 2021 in Education by JackTerrance
0 votes
    Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Ok, I'm doing a bunch of RIA/AJAX stuff and need to create a "pretty", custom confirm box which ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    The transaction can no longer continue with its normal execution because of some internal condition, such ... topic in chapter Recovery System of Database Management...
asked Oct 10, 2021 in Education by JackTerrance
0 votes
    I know that when we execute a PHP script on localhost, the server runs the code and does the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 12, 2022 in Education by JackTerrance
0 votes
    Write· a program to read one of the hex digits A-I’, and...
asked Nov 26, 2021 in Education by JackTerrance
...