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


Groups > comp.graphics.apps.gnuplot > #2899 > unrolled thread

Plot multiple rectangles from file

Started byivailoradev65@gmail.com
First post2015-05-10 08:19 -0700
Last post2015-05-10 12:40 -0700
Articles 4 — 3 participants

Back to article view | Back to comp.graphics.apps.gnuplot


Contents

  Plot multiple rectangles from file ivailoradev65@gmail.com - 2015-05-10 08:19 -0700
    Re: Plot multiple rectangles from file Michael Okuntsov <proximum@land.ru> - 2015-05-10 23:39 +0600
      Re: Plot multiple rectangles from file Michael Okuntsov <proximum@land.ru> - 2015-05-10 23:53 +0600
        Re: Plot multiple rectangles from file Ivailo Radev <ivailoradev65@gmail.com> - 2015-05-10 12:40 -0700

#2899 — Plot multiple rectangles from file

Fromivailoradev65@gmail.com
Date2015-05-10 08:19 -0700
SubjectPlot multiple rectangles from file
Message-ID<c71a13b2-d629-46e4-8bf0-9898763cb55a@googlegroups.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?

[toc] | [next] | [standalone]


#2900

FromMichael Okuntsov <proximum@land.ru>
Date2015-05-10 23:39 +0600
Message-ID<mio53c$j19$1@dont-email.me>
In reply to#2899
10.05.2015 21:19, ivailoradev65@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

[toc] | [prev] | [next] | [standalone]


#2901

FromMichael Okuntsov <proximum@land.ru>
Date2015-05-10 23:53 +0600
Message-ID<mio5sp$mq9$1@dont-email.me>
In reply to#2900
Sorry, I've missed the part where you wrote about getting coordinates 
from the file. You can look at this: 
http://www.gnuplotting.org/object-placement-using-a-data-file/ .

[toc] | [prev] | [next] | [standalone]


#2902

FromIvailo Radev <ivailoradev65@gmail.com>
Date2015-05-10 12:40 -0700
Message-ID<259e6aa0-5390-4917-8899-2bb26caacb76@googlegroups.com>
In reply to#2901
Thank you very much. The first part was not exactly what I was looking for, but it was also helpful. I will take a look at the second part tomorrow and hope this will help me. Thank you again.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.graphics.apps.gnuplot


csiph-web