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


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

Re: Plot multiple rectangles from file

From Michael Okuntsov <proximum@land.ru>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Plot multiple rectangles from file
Date 2015-05-10 23:39 +0600
Organization A noiseless patient Spider
Message-ID <mio53c$j19$1@dont-email.me> (permalink)
References <c71a13b2-d629-46e4-8bf0-9898763cb55a@googlegroups.com>

Show all headers | View raw


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

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

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

csiph-web