|
From: Daniel J S. <dan...@ie...> - 2011-08-30 17:25:00
|
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 |