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


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

Re: Run gnoplot from code::Blocks in Windows10

X-Received by 10.31.190.72 with SMTP id o69mr5027209vkf.48.1501260994165; Fri, 28 Jul 2017 09:56:34 -0700 (PDT)
X-Received by 10.36.103.4 with SMTP id u4mr316878itc.14.1501260994084; Fri, 28 Jul 2017 09:56:34 -0700 (PDT)
Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!s6no677821qtc.1!news-out.google.com!196ni2020itl.0!nntp.google.com!t6no440868itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Fri, 28 Jul 2017 09:56:33 -0700 (PDT)
In-Reply-To <e7b1987b-e6e4-4b7d-848a-7d9ce1de79d4@googlegroups.com>
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=73.79.128.237; posting-account=yC8mVwkAAADuRBqBIdPVfec50l5EMdYn
NNTP-Posting-Host 73.79.128.237
References <e7b1987b-e6e4-4b7d-848a-7d9ce1de79d4@googlegroups.com>
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <d1ea5f48-6469-475e-a1be-7535b4239713@googlegroups.com> (permalink)
Subject Re: Run gnoplot from code::Blocks in Windows10
From Gavin Buxton <gavinbuxton@gmail.com>
Injection-Date Fri, 28 Jul 2017 16:56:34 +0000
Content-Type text/plain; charset="UTF-8"
Xref csiph.com comp.graphics.apps.gnuplot:3702

Show key headers only | View raw


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