Gnuplot From command line type gnuplot GNUPLOT Linux

  • Slides: 7
Download presentation
Gnuplot From command line, type gnuplot GNUPLOT Linux version 3. 7 patchlevel 1 last

Gnuplot From command line, type gnuplot GNUPLOT Linux version 3. 7 patchlevel 1 last modified Fri Oct 22 18: 00 BST 1999 Copyright(C) 1986 - 1993, 1998, 1999 Thomas Williams, Colin Kelley and many others Type `help` to access the on-line reference manual The gnuplot FAQ is available from <http: //www. ucc. ie/gnuplot-faq. html> Send comments and requests for help to <info-gnuplot@dartmouth. edu> Send bugs, suggestions and mods to <bug-gnuplot@dartmouth. edu> Terminal type set to 'unknown' gnuplot>

Data file output. dat arranged in columns… vi output. dat 0. 001000 0. 002000

Data file output. dat arranged in columns… vi output. dat 0. 001000 0. 002000 0. 003000 0. 004000 0. 005000 0. 006000 0. 007000 0. 008000 0. 009000 0. 010000 0. 011000 72. 565480 72. 520960 72. 476440 72. 431920 72. 387400 72. 342880 72. 298360 72. 253840 72. 209320 72. 164800 72. 120280 0. 000435 0. 000870 0. 001305 0. 001741 0. 002176 0. 002612 0. 003047 0. 003482 0. 003918 0. 004354 0. 004789 0. 015116 0. 015110 0. 015103 0. 015096 0. 015090 0. 015083 0. 015076 0. 015069 0. 015063 0. 015056 0. 015049 0. 018278 0. 021045 0. 023514 0. 025747 0. 027789 0. 029673 0. 031423 0. 033061 0. 034602 0. 036058 0. 037439 1. 209130 1. 392828 1. 556945 1. 705559 1. 841619 1. 967315 2. 084319 2. 193931 2. 297184 2. 394906 2. 487776 Doesn’t matter if it neatly lines up, gnuplot just looks for blank spaces…. The default is gnuplot assumes column 1 is x data and column 2 is y data…

Set terminal…. Where the output goes… To plot to screen with just text characters

Set terminal…. Where the output goes… To plot to screen with just text characters to preview… gnuplot> set terminal dumb To make a postscript file gnuplot> set terminal postscript To make a jpeg file gnuplot> set terminal jpeg

To output plot to a file… gnuplot> set output ‘picture. ps’ gnuplot> set output

To output plot to a file… gnuplot> set output ‘picture. ps’ gnuplot> set output ‘picture. jpeg’

To plot data in a file… gnuplot> plot ‘output. dat’ To plot file in

To plot data in a file… gnuplot> plot ‘output. dat’ To plot file in along a certain x, y range… gnuplot> plot [0: 2][-2: 2] ‘output. dat’ To plot different columns, for example col. 2 for x and col. 3 for y… gnuplot> plot ‘output. dat’ using 2: 3 Default is points… to plot with lines… gnuplot> plot ‘output. dat’ using lines

Transferring files from/to cluster Winscp is a free windows program for ftp http: //winscp.

Transferring files from/to cluster Winscp is a free windows program for ftp http: //winscp. net/eng/index. php For OSX or linux, scp command For example, to transfer a file from cluster to physics server… scp filename username@nexus. physics. ucf. edu: filename To transfer a file to your OSX or linux machine from cluster… scp student@132. 170. 176. 230: ~/group 1/filename This is a way to transfer pictures to you computer for printing, or data for plotting

Another option… Transfer data to your laptop for plotting using a spreadsheet program (e.

Another option… Transfer data to your laptop for plotting using a spreadsheet program (e. g. Microsoft Excel)