Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #4051
| Newsgroups | comp.graphics.apps.gnuplot |
|---|---|
| Date | 2018-10-20 00:31 -0700 |
| 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> |
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
setting objects from data stored in a file Fahad P <fahadputhalath@gmail.com> - 2018-10-20 00:31 -0700
csiph-web