10.05.2015 21:19,
ivailo...@gmail.com пишет:
> Hi everyone,
> currently I want to create multiple rectangles. I want to obtain the coordinates from text file. As there will be 100+ rectangles, I think loop is needed, but I have no idea how to create a loop for set rect, getting the coordinates from the file. Can you help me?
>
Here is my scritp for plotting some schematics. Hope this helps.
set enc utf8
set term post eps font ",8" adobeglyphnames
set output "data1_boxes.eps"
set size ratio 0.9
set xrange [-1:88]
set yrange [-1:82]
unset key;unset border;unset tics
do for [i=0:3] {
do for [j=0:3] {
set object j+1+i*4 rect from 22.33*j, 20.5*i rto 20., 19.5 noclip fs
empty border rgb "black" lw 3
}
}
set object 20 rect from 0,0 rto 20.,19.5 noclip fc "grey80"
set object 21 rect from 22.33*3,0 rto 20.,19.5 noclip fc "grey80"
set object 22 rect from 0,20.5*3 rto 20.,19.5 noclip fc "grey80"
set object 23 rect from 22.33*3,20.5*3 rto 20.,19.5 noclip fc "grey80"
plot -10000 notitle