From: Bastian M. <bma...@we...> - 2011-08-30 17:34:16
|
Or, if you use the current CVS version, you could use loops to generate a data file: set print "points.dat" print "# dataset 1" do for [i=1:100] { print rand(0), rand(0) } print ""; print "" print "# dataset 2" do for [i=1:200] { print rand(0)+3, rand(0)+3 } unset print Bastian Am 30.08.2011 19:24, schrieb Daniel J Sebald: > On 08/30/2011 10:58 AM, Mojca Miklavec wrote: >> Hello, >> >> I would like to fill one square area of the plot with 100 random >> points and another one with n random points (n is a parameter). >> >> If I use >> set samples 100 >> set parametric >> plot rand(0),rand(0) w lines, rand(0)+3,rand(0)+3 >> then I cannot vary number of points - I need an equal number of each points. >> >> Is there a quick remedy for that (apart from writing a C program to >> create a list of points for me)? > > Mojca, I think it should be straightforward to generate the random data > in a couple files using the "table" feature, then pull that data into > gnuplot. As examples, look at the "random.dem" demo where the number of > samples is set quite often. Just do a couple quick so-called plots to > create the data files changing the number of samples in between. > > Dan > > ------------------------------------------------------------------------------ > Special Offer -- Download ArcSight Logger for FREE! > Finally, a world-class log management solution at an even better > price-free! And you'll get a free "Love Thy Logs" t-shirt when you > download Logger. Secure your free ArcSight Logger TODAY! > http://p.sf.net/sfu/arcsisghtdev2dev > _______________________________________________ > gnuplot-beta mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta -- Dr. Bastian Märkisch Physikalisches Institut, Universität Heidelberg Philosophenweg 12 69120 Heidelberg Tel.: +49-6221-549214 Fax: +49-6221-549343 |