Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Michael Kubovy <kubovy <at> virginia.edu>
Subject: Question about repeated commands
Newsgroups: gmane.comp.tex.pgf.user
Date: Wednesday 9th January 2008 16:44:31 UTC (over 9 years ago)
Dear PGF users,

Can anyone suggest a more compact way to fill a 4.4 x 4.4 in square  
region -- centered at (10, 0) -- with random dots?

				\foreach \position in
							{(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand,  
2.2*rand), (10+2.2*rand, 2.2*rand), (10+2.2*rand, 2.2*rand),  
(10+2.2*rand, 2.2*rand)
							}
						\filldraw[fill=white,draw=black!75]
							\position circle (0.1cm);

_____________________________
Professor Michael Kubovy
University of Virginia
Department of Psychology
USPS:     P.O.Box 400400    Charlottesville, VA 22904-4400
Parcels:    Room 102        Gilmer Hall
         McCormick Road    Charlottesville, VA 22903
Office:    B011    +1-434-982-4729
Lab:        B019    +1-434-982-4751
Fax:        +1-434-982-4766
WWW:    http://www.people.virginia.edu/~mk9y/



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
 
CD: 17ms