Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2900
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Michael Okuntsov <proximum@land.ru> |
| Newsgroups | comp.graphics.apps.gnuplot |
| Subject | Re: Plot multiple rectangles from file |
| Date | Sun, 10 May 2015 23:39:58 +0600 |
| Organization | A noiseless patient Spider |
| Lines | 25 |
| Message-ID | <mio53c$j19$1@dont-email.me> (permalink) |
| References | <c71a13b2-d629-46e4-8bf0-9898763cb55a@googlegroups.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 10 May 2015 17:38:52 +0000 (UTC) |
| Injection-Info | mx02.eternal-september.org; posting-host="cf5bdc88c5a516dede8d084f7f2366b4"; logging-data="19497"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19NqyxViFEolE2S4J6N9hU/" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
| In-Reply-To | <c71a13b2-d629-46e4-8bf0-9898763cb55a@googlegroups.com> |
| Cancel-Lock | sha1:2b7UgSs0iVKbuiQg7euNDVGAH94= |
| Xref | csiph.com comp.graphics.apps.gnuplot:2900 |
Show key headers only | 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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