|
From: Daniel J S. <dan...@ie...> - 2006-05-11 08:56:09
|
Daniel J Sebald wrote: > > Ethan A Merritt wrote: > >> Also I think it would neat if you can manage to jam the generation >> of the samples into the actual plot command so that "replot" will >> resample rather than simply redrawing the previous sampling. >> Similar to the plots in rgb_variable.dem. > > > Well, I can. But I know what Hans will say. If instead of > > "temp.dat" with points > > in the splot command, we have > > "temp.dat" using (invnorm(rand(0))):(invnorm(rand(0))):(-0.2) > issuing replot will create a new set of outcomes. In other words, data > was put in "temp.dat" for the sole purpose of setting the number of > points in the random data set create at the plot command. The data > itself inside "temp.dat" is not used. Actually, if one does this sort of approach, the generated data could be written in very compact form as: set format "%0.0f" set table "temp.dat" plot 0,0 #plot invnorm(rand(0)),(1.0*scale/nsamp) unset table unset format and every point inside the file looks like: #Curve 0 of 1, 5000 points #x y type 0 0 i 0 0 i ... The data isn't used, but it averages to only a few characters per number, eventually replaced by a random value when read in. I know, it's a kluge... but I could live with it if others could. Dan |