Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8835521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T09:16:43+00:00 2026-06-14T09:16:43+00:00

I am using the following commands to draw a simple sin(x) plot on gnuplot

  • 0

I am using the following commands to draw a simple sin(x) plot on gnuplot , with a pipe from VS2010 C++

set terminal windows
set title 'Graph of velocity versus time'
set xrange[0:10]
plot sin (x)

Problem is the window keeps closing down too quickly . I don’t want to use the ‘pause’ command as it stop the entire code.

Is there any other way to keep this window open without the pause command?

Cheers

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T09:16:44+00:00Added an answer on June 14, 2026 at 9:16 am

    I cant try it, but have you tried

    1. setting the terminal to ‘set terminal x11’
    2. set up the terminal to multiple user screens by using ‘set terminal windows 0’
    3. set the output to a png or other image and then use the pipe to open am image viewer programm

    The problem is that the command you set via your pipe is probably executed via cmd.exe which exits as soon as gnuplot return 1 (which is totally does after successful plot). With this the instance of the window is destroyed as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to execute windows commands from Java using the following code, Process
From Windows I can communicate with a serial port device using the following commands:
I am trying to set slingbox connection to class 1:20 using the following commands:
I chrooted directory using following commands: os.chroot(/mydir) How to return to directory to previous
In my repository, I have created tags using the following commands. git tag v1.0.0
I have gotten the following errors using ruby 1.9.2-p320 with Heroku's Taps-using 'db' commands
I have the following to execute shell commands using Node: function puts( error, stdout,
I'm using the following command to set up the AWS launch config: as-create-launch-config test1autoscale
I have upgraded ruby using the following commands with rvm: rvm get head rvm
When I am in an interactive python session (usually IPython), the following commands: from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.