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


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

Re: Run gnoplot from code::Blocks in Windows10

From John Edwards <johned0@gmail.com>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Run gnoplot from code::Blocks in Windows10
Date 2017-07-29 23:16 +0100
Message-ID <eu4fpaF63sU1@mid.individual.net> (permalink)
References <e7b1987b-e6e4-4b7d-848a-7d9ce1de79d4@googlegroups.com> <d1ea5f48-6469-475e-a1be-7535b4239713@googlegroups.com>

Show all headers | View raw


Gavin is correct, pipes are the way to go.
I haven't used code::Blocks but I have used wxWidgets and for plotting I 
wrote a C/C++ wrapper library that does the job : 
https://sourceforge.net/projects/gnuplotc/.
John


On 28/07/2017 17:56, Gavin Buxton wrote:
> Hi
> 
> I use linux, and have no idea what windows does, but this works for me:
> 
> fp = popen("gnuplot", "w");
> 
> where fp is defined previously by
> 
> FILE *fp;
> 
> then whenever I want to pipe commands to gnuplot I just
> 
> fprintf(fp, "plot 'file.dat'");
> 
> which, for example, would plot the file 'file.dat', that could be written to in your code. Every second for 3D data could be laggy, but it depends on your computer and the data size I guess.
> 
> 
> Gavin
> 

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next 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