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


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

setting objects from data stored in a file

X-Received by 2002:a24:7996:: with SMTP id z144-v6mr5836650itc.10.1540020662155; Sat, 20 Oct 2018 00:31:02 -0700 (PDT)
X-Received by 2002:aca:7552:: with SMTP id q79-v6mr644172oic.1.1540020661720; Sat, 20 Oct 2018 00:31:01 -0700 (PDT)
Path csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!x98-v6no160961ita.0!news-out.google.com!l70-v6ni222itb.0!nntp.google.com!x98-v6no160960ita.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Newsgroups comp.graphics.apps.gnuplot
Date Sat, 20 Oct 2018 00:31:01 -0700 (PDT)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=61.95.189.155; posting-account=62etiAoAAABY2q6x997fQU-jEQ7NM1FX
NNTP-Posting-Host 61.95.189.155
User-Agent G2/1.0
MIME-Version 1.0
Message-ID <33e4156f-2704-4713-8efd-464e1d8f50a4@googlegroups.com> (permalink)
Subject setting objects from data stored in a file
From Fahad P <fahadputhalath@gmail.com>
Injection-Date Sat, 20 Oct 2018 07:31:02 +0000
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
Lines 16
Xref csiph.com comp.graphics.apps.gnuplot:4051

Show key headers only | View raw


I was making a movie for the code I have written in C using gnuplot. I have to set many rectangles in the window at each instant of time (from x1,y1 to x2,y2) and I have this configurations in different files.. config_00.txt, config_10.txt, config_20.txt, etc.. at times 0,10,20, etc.. each of which have 4 columns x1,y1,x2,y2. How can I do this ?. If my file was storing only x and y, and If i need to draw a line only I could have written "plot 'config_10.txt' only.. But here that's not the case.. I need to scan each line of each file and set objects at possitions that line does say.. I saw something like "call" in gnuplot.. but I could't understand please help..  I may write a program to scan each files(which stores configuration at different times) and set objects.. then unset again set from next file but it looks tedious.. for ploting data points in a file with x,y columns we can just say plot "file.txt" u 1:2... but i was asking whether there is something like "from file_10.txt set object rectangle from $1,$2 to $3,$4

After setting those objects, to see the configuration i used to plot something like plot 0.. so gnuplot shows me my configuration

Back to comp.graphics.apps.gnuplot | Previous | Next | Find similar


Thread

setting objects from data stored in a file Fahad P <fahadputhalath@gmail.com> - 2018-10-20 00:31 -0700

csiph-web