|
From: <as...@ca...> - 2007-03-07 15:10:09
|
Hi Tatjana! On 3/7/07, Tatjana Skrbic <sk...@si...> wrote: > > > Dear All, > > I would like to if it is possible in gnuplot to define a function > (using ternany operator) whose values are the result of some > operations on the data stored in a given data-file. You can define a function in the usual way. Suppose we want to determine an= d plot the max. of the data stored on two different columns of the date file. So first, we could define the function "max" as: gnuplot> max(x,y)=3D(x>y?x:y) In this case, if x>y it the result will be x, otherwise y. Then we could use this funciton to analize the data: gnuplot> plot 'mydatafile.dat' u 1:(max($2,$3)) w p This statment will plot a graph with points using the contents of column 1 as the x-axis, and the max value between columns 2 and 3 for the y axis. Bye! Any info will be highly appreciated. > Best regards from Tatjana. > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV > _______________________________________________ > Gnuplot-info mailing list > Gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > --=20 --------------------------------------------- Mg. Hern=E1n Gonzalo Asorey Instituto Balseiro - CAB (8400) San Carlos de Bariloche R=EDo Negro - Rep. Argentina --------------------------------------------- cabtep5.cnea.gov.ar/~asoreyh/ |