[CSC 335] Cygwin on Win 7 and gnuPlot

Andrew J. Pounds pounds_aj at mercer.edu
Fri Oct 28 10:20:53 EDT 2011


  I am assuming that you want to plot your node points and then the 
spline and that they are
stored in a file like

XPT    YPT   SPLINEFIT


plot "datafile.dat" using 1:2 with lines
replot "datafile.dat" using 1:3 with lines


That will plot your X/Y datapairs in columns 1 and 2 and then plot the x 
data and splinefit from colums 1 and 3 on the same plot.

you could also try this variation

plot "datafile.dat" using 1:2 with points title "Node Points"
replot "datafile.dat" using 1:3 with lines title "Cubic Spline Fit"




On 10/28/2011 07:46 AM, Thomas.Keith.Quigley wrote:
> If the file has multiple columns (like the one I showed you in your office), how would I choose specific columns to plot?
>
> -----Original Message-----
> From: Andrew J. Pounds [mailto:pounds_aj at mercer.edu]
> Sent: Friday, October 28, 2011 5:49 AM
> To: Thomas.Keith.Quigley
> Subject: Re: Cygwin on Win7
>
>    plot "datafilename.dat" with lines
>
>
> On 10/27/2011 11:30 PM, Thomas.Keith.Quigley wrote:
>> It worked! Now I was gonna ask how to plot points from a text file, like you did in class. I opened gnuplot while in the directory the file is in, but I don't know what command to use.
>>
>> -----Original Message-----
>> From: Andrew J. Pounds [mailto:pounds_aj at mercer.edu]
>> Sent: Thursday, October 27, 2011 10:23 PM
>> To: Thomas.Keith.Quigley
>> Subject: Cygwin on Win7
>>
>>     Tommy -- go back to the Cygwin install page and run the setup
>> program.  Search for ssh and install the openssh package.  It may want
>> to install some other things as well.
>>
>> Once you have done this start cygwin and type "startx"
>>
>> When the X-window screen comes up, type
>>
>>
>> ssh -Y -l cobra_login_name cobra.cs.mercer.edu
>>
>> This sould open a connection to cobra and allow you to run X-commands
>> (NO PUTTY NEEDED).
>>
>>
>> Give it a shot and let me know what happens.
>>
>>
>

-- 
Andrew J. Pounds, Ph.D.  (pounds at theochem.mercer.edu)
Associate Professor of Chemistry and Computer Science
Mercer University,  Macon, GA 31207   (478) 301-5627



More information about the csc335 mailing list