Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.apps.gnuplot > #3701

Run gnoplot from code::Blocks in Windows10

Newsgroups comp.graphics.apps.gnuplot
Date 2017-07-28 02:20 -0700
Message-ID <e7b1987b-e6e4-4b7d-848a-7d9ce1de79d4@googlegroups.com> (permalink)
Subject Run gnoplot from code::Blocks in Windows10
From ugo.m.mela@gmail.com

Show all headers | View raw


Hi,

I have to plot a 3D function, which is the result of a c++ program, with gnuplot. In the same time I have to evaluate the evolution over time of the function, so I have to plot the output that the c++ program give me, each second on the same graph.

I think that I could use the ShellExecute() and I wrote this code:

ShellExecute(NULL, "open", "C:\\Programmi\\gnuplot\\bin\\gnuplot.exe", "plot sin(x) pause-1", NULL, SW_SHOW);

The problems are related to the facts that:

1- The execution of the program is too fast and I don't see anything.
2- I don't know how pass an array of float numbers to gnuplot with the previous function.
3- I can't replace the plot over the previous one in order to evaluate the evolution over time.

How can I solve?

Thanks!

Back to comp.graphics.apps.gnuplot | Previous | NextNext in thread | Find similar


Thread

Run gnoplot from code::Blocks in Windows10 ugo.m.mela@gmail.com - 2017-07-28 02:20 -0700
  Re: Run gnoplot from code::Blocks in Windows10 Gavin Buxton <gavinbuxton@gmail.com> - 2017-07-28 09:56 -0700
    Re: Run gnoplot from code::Blocks in Windows10 John Edwards <johned0@gmail.com> - 2017-07-29 23:16 +0100
  Re: Run gnoplot from code::Blocks in Windows10 Gavin Buxton <gavinbuxton@gmail.com> - 2017-07-29 06:58 -0700

csiph-web