Presentation is loading. Please wait.

Presentation is loading. Please wait.

Gnuplot From command line, type gnuplot G N U P L O T Linux version 3.7 patchlevel 1 last modified Fri Oct 22 18:00:00 BST 1999 Copyright(C) 1986 - 1993,

Similar presentations


Presentation on theme: "Gnuplot From command line, type gnuplot G N U P L O T Linux version 3.7 patchlevel 1 last modified Fri Oct 22 18:00:00 BST 1999 Copyright(C) 1986 - 1993,"— Presentation transcript:

1 Gnuplot From command line, type gnuplot G N U P L O T Linux version 3.7 patchlevel 1 last modified Fri Oct 22 18:00: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 Send comments and requests for help to Send bugs, suggestions and mods to Terminal type set to 'unknown' gnuplot>

2 0.001000 72.565480 0.000435 0.015116 0.018278 1.209130 0.002000 72.520960 0.000870 0.015110 0.021045 1.392828 0.003000 72.476440 0.001305 0.015103 0.023514 1.556945 0.004000 72.431920 0.001741 0.015096 0.025747 1.705559 0.005000 72.387400 0.002176 0.015090 0.027789 1.841619 0.006000 72.342880 0.002612 0.015083 0.029673 1.967315 0.007000 72.298360 0.003047 0.015076 0.031423 2.084319 0.008000 72.253840 0.003482 0.015069 0.033061 2.193931 0.009000 72.209320 0.003918 0.015063 0.034602 2.297184 0.010000 72.164800 0.004354 0.015056 0.036058 2.394906 0.011000 72.120280 0.004789 0.015049 0.037439 2.487776 Data file output.dat arranged in columns… 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… vi output.dat

3 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

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

5 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

6 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:~/group1/filename filename This is a way to transfer pictures to you computer for printing, or data for plotting

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


Download ppt "Gnuplot From command line, type gnuplot G N U P L O T Linux version 3.7 patchlevel 1 last modified Fri Oct 22 18:00:00 BST 1999 Copyright(C) 1986 - 1993,"

Similar presentations


Ads by Google