Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: John Edwards Newsgroups: comp.graphics.apps.gnuplot Subject: Re: Run gnoplot from code::Blocks in Windows10 Date: Sat, 29 Jul 2017 23:16:05 +0100 Lines: 28 Message-ID: References: Reply-To: johned0@gmail.com Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: individual.net x30jJi3OFTL8UerMgUxNfgAKWFC/4HlVWbAjs7JCiEsWIYVA/P Cancel-Lock: sha1:hlZ8jgSnEg2k2Njr0esFe4Gh4Dc= User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:3704 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 >