Skip to main content

Posts

Showing posts with the label gnuplot

GNUPLOT: Plot for specific lines

GNUPLOT is very easy tool to plot the data in nicer way! How to plot data from file ' data.dat ' for total row lets say 2000? --> Traditional way p " data.dat " u 1:2 w l or plot " data.dat " using 1:2 with line But, How to plot data for row from 1000 to 2000? --> p [1000:2000][] " data.dat " u 1:2 w l So far this is easy. Right? Now how to plot data for row from 1 to 1000 and 1001 to 2000? Hmm... Quit tricky. Lets do the following: [use some bash scripting ;-)] --> p  "<(sed -n '1,1000p' data.dat )" u 1:2 w l, \     "<(sed -n '1001,2000p' data.dat )" u 1:2 w l Old  New

GNUPLOT: How to draw trend line?

How to draw trend line in the GNUPLOT? If you like to plot graphs in gnuplot and dont know how to plot trendline then here you are. Follow the steps mentioned below... 1. You should have a files with X and Y values 2. Open GNUPLOT (Operating system dosen't change anything here. It works on all systems) 3. Type the command in the gnuplot terminal Lets say I have a file for eg. '1.txt' p '1.txt' u 1:2 w d title '', '1.txt' u 1:2 smooth acsplines title '1.txt' OR p '1.txt' u 1:2 w d title '', '1.txt' u 1:2 smooth bezier title '1.txt' It will plot as below...

Science News

Enter your email address:

PhD Vacancy Bioinformatics

PhD Vacancy Chemoinformatics