<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://csml-wiki.northwestern.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bernie</id>
	<title>csml-wiki.northwestern.edu - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://csml-wiki.northwestern.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Bernie"/>
	<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php/Special:Contributions/Bernie"/>
	<updated>2026-04-09T02:20:58Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.2</generator>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=621</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=621"/>
		<updated>2016-04-29T19:30:58Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Formatting labels */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. &#039;&#039;&#039;This page does not provide a detailed manual for gnuplot&#039;&#039;&#039;, but instead focuses on specific aspects typically encountered in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh [additional options]&lt;br /&gt;
  set output &amp;quot;filename.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal via&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color [additional options]&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. One advantage of .eps files is that they can be edited directly in a text editor. See [[#eps-edit|below]] for an example.&lt;br /&gt;
Once the eps file has been formatted properly, you can convert it to PDF format using [http://www.ctan.org/pkg/epstopdf epstopdf]. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;textlabel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
In emacs, one can use the shorthand &amp;lt;code&amp;gt;M-x ho&amp;lt;/code&amp;gt; for Helvetica-Oblique and &amp;lt;code&amp;gt;M-x so&amp;lt;/code&amp;gt; for Symbol-Oblique by inserting the following lines into your .emacs file.&lt;br /&gt;
&lt;br /&gt;
  (fset &#039;ho&lt;br /&gt;
     (lambda (&amp;amp;optional arg) &amp;quot;Keyboard macro.&amp;quot; (interactive &amp;quot;p&amp;quot;) (kmacro-exec-ring-item (quote (&amp;quot;{/Helvetica-Oblique }^[OD&amp;quot; 0 &amp;quot;%d&amp;quot;)) arg)))&lt;br /&gt;
  (fset &#039;so&lt;br /&gt;
     (lambda (&amp;amp;optional arg) &amp;quot;Keyboard macro.&amp;quot; (interactive &amp;quot;p&amp;quot;) (kmacro-exec-ring-item (quote (&amp;quot;{/Symbol-Oblique }^[OD&amp;quot; 0 &amp;quot;%d&amp;quot;)) arg)))&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
 set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
 set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
 set encoding iso_8859_1&lt;br /&gt;
 set key top right&lt;br /&gt;
 set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
 set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
 set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
 set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
 set xrange [{xmin}:{xmax}]&lt;br /&gt;
 set yrange [{ymin}:{ymax}]&lt;br /&gt;
 plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Journals typically prefer Helvetica as the typeface for figures.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;eps-edit&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;The origin should be marked with &#039;0&#039;, not &#039;0.0&#039;. If you produce a figure directly in PDF format, this can be fixed in Adobe Illustrator. However, it is easier to use the [[#Encapsulated PostScript terminal|EPS terminal]] and then edit the resulting .eps file using [http://www.grymoire.com/unix/sed.html sed]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot accepts abbreviated commands: you just have to enter enough characters to uniquely resolve a command. For example, it is acceptable to write&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; us 1:2:3 w err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
instead of&lt;br /&gt;
&amp;lt;pre&amp;gt;plot &amp;quot;file.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can plot compressed data files by sending the data through a pipe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; gzip -dc data.gz&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;To plot the average of columns that are spread over multiple files (but have the same number of lines in each file), take advantage of the [[Command-line_interface_on_Linux/UNIX#paste|paste]] command in Unix to combine them in single file. For example, if three files each contain two columns (x y), use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paste file1.dat file2.dat file3.dat &amp;gt; combined.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then within gnuplot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;combined.dat&amp;quot; us 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can even be done on the fly by using a pipe: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; paste file1.dat file2.dat file3.dat&#039; using 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can histogram data without the need for preprocessing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
binwidth=[binwidth]&lt;br /&gt;
bin(x,width)=width*floor(x/width) + binwidth/2.0&lt;br /&gt;
set boxwidth binwidth&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; using (bin($[colnum],binwidth)):(1.0) smooth freq with boxes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the user should replace &amp;lt;tt&amp;gt;[binwidth]&amp;lt;/tt&amp;gt; with the desired bin width and &amp;lt;tt&amp;gt;[colnum]&amp;lt;/tt&amp;gt; with the column number of the data to be binned.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executable version for OS X ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Compiled on OS X 10.10.3 (Yosemite)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Prior to using this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Current version is Gnuplot 5.0.1&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Includes GNU Readline library and PDF terminal&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local&lt;br /&gt;
sudo unzip /tmp/gnuplot_osx_501.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;You can now invoke gnuplot from a terminal window&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=618</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=618"/>
		<updated>2016-04-10T18:28:41Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. &#039;&#039;&#039;This page does not provide a detailed manual for gnuplot&#039;&#039;&#039;, but instead focuses on specific aspects typically encountered in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh [additional options]&lt;br /&gt;
  set output &amp;quot;filename.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal via&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color [additional options]&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. One advantage of .eps files is that they can be edited directly in a text editor. See [[#eps-edit|below]] for an example.&lt;br /&gt;
Once the eps file has been formatted properly, you can convert it to PDF format using [http://www.ctan.org/pkg/epstopdf epstopdf]. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;textlabel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
 set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
 set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
 set encoding iso_8859_1&lt;br /&gt;
 set key top right&lt;br /&gt;
 set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
 set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
 set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
 set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
 set xrange [{xmin}:{xmax}]&lt;br /&gt;
 set yrange [{ymin}:{ymax}]&lt;br /&gt;
 plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Journals typically prefer Helvetica as the typeface for figures.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;eps-edit&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;The origin should be marked with &#039;0&#039;, not &#039;0.0&#039;. If you produce a figure directly in PDF format, this can be fixed in Adobe Illustrator. However, it is easier to use the [[#Encapsulated PostScript terminal|EPS terminal]] and then edit the resulting .eps file using [http://www.grymoire.com/unix/sed.html sed]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot accepts abbreviated commands: you just have to enter enough characters to uniquely resolve a command. For example, it is acceptable to write&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; us 1:2:3 w err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
instead of&lt;br /&gt;
&amp;lt;pre&amp;gt;plot &amp;quot;file.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can plot compressed data files by sending the data through a pipe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; gzip -dc data.gz&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;To plot the average of columns that are spread over multiple files (but have the same number of lines in each file), take advantage of the [[Command-line_interface_on_Linux/UNIX#paste|paste]] command in Unix to combine them in single file. For example, if three files each contain two columns (x y), use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paste file1.dat file2.dat file3.dat &amp;gt; combined.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then within gnuplot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;combined.dat&amp;quot; us 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can even be done on the fly by using a pipe: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; paste file1.dat file2.dat file3.dat&#039; using 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can histogram data without the need for preprocessing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
binwidth=[binwidth]&lt;br /&gt;
bin(x,width)=width*floor(x/width) + binwidth/2.0&lt;br /&gt;
set boxwidth binwidth&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; using (bin($[colnum],binwidth)):(1.0) smooth freq with boxes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the user should replace &amp;lt;tt&amp;gt;[binwidth]&amp;lt;/tt&amp;gt; with the desired bin width and &amp;lt;tt&amp;gt;[colnum]&amp;lt;/tt&amp;gt; with the column number of the data to be binned.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executable version for OS X ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Compiled on OS X 10.10.3 (Yosemite)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Prior to using this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Current version is Gnuplot 5.0.1&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Includes GNU Readline library and PDF terminal&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local&lt;br /&gt;
sudo unzip /tmp/gnuplot_osx_501.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;You can now invoke gnuplot from a terminal window&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Etiquette:_Running_Nice_on_other_desktop_machines&amp;diff=615</id>
		<title>Etiquette: Running Nice on other desktop machines</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Etiquette:_Running_Nice_on_other_desktop_machines&amp;diff=615"/>
		<updated>2016-02-26T01:39:47Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;When using someone else&#039;s machine, it&#039;s polite to use the command &#039;&#039;&#039;nice&#039;&#039;&#039; and &#039;&#039;&#039;renice&#039;&#039;&#039;. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Nice&#039;&#039;&#039; changes the priority of a task. When using another machine, you want to set your task to a lower priority as to not interfere with the user&#039;s tasks. Priority ranges from -20 (highest) to 20 (lowest). &lt;br /&gt;
&lt;br /&gt;
nice [options] [command]&lt;br /&gt;
&lt;br /&gt;
Example: &lt;br /&gt;
&lt;br /&gt;
nice -19 ~/run.py&lt;br /&gt;
&lt;br /&gt;
UNIX priority levels are counted from negative (highest) to positive. Note that &amp;lt;code&amp;gt;nice -n&amp;lt;/code&amp;gt; specifies a priority of &amp;lt;code&amp;gt;n&amp;lt;/code&amp;gt; whereas &amp;lt;code&amp;gt;nice --n&amp;lt;/code&amp;gt; specifies a priority of &amp;lt;code&amp;gt;-n&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Renice&#039;&#039;&#039; allows you to reset the priority of a process that is already running. &lt;br /&gt;
&lt;br /&gt;
renice [-n] [PID] [options]&lt;br /&gt;
&lt;br /&gt;
Replace [-n] with the desired priority, and [PID] with the process ID number.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Synology_diskstation&amp;diff=611</id>
		<title>Synology diskstation</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Synology_diskstation&amp;diff=611"/>
		<updated>2015-11-13T20:50:22Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Mounting your Synology folder on your Linux workstation via WedDAV */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Pergamon is a Synology diskstation that can be accessed in a number of ways.  It offers each group member 1 TB of storage space (this may be expanded in the future).&lt;br /&gt;
&lt;br /&gt;
== Usage scenarios ==&lt;br /&gt;
&lt;br /&gt;
=== Logging in via ssh ===&lt;br /&gt;
&lt;br /&gt;
You have the same username as on the main cluster.  Log in from your workstation via &#039;ssh pergamon&#039;.  This is not a full Linux implementation; the main purpose of the shell is to navigate around the file system. Your home folder is &#039;/volume1/homes/USERNAME&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Web access ===&lt;br /&gt;
&lt;br /&gt;
https://pergamon.ms.northwestern.edu:5001&lt;br /&gt;
&lt;br /&gt;
=== Copying data to diskstation via scp ===&lt;br /&gt;
&lt;br /&gt;
You can use scp as you would use it for copying files to any other machine:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
scp LOCAL_FILES pergamon:&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
&lt;br /&gt;
=== Copying data to diskstation via rsync ===&lt;br /&gt;
&lt;br /&gt;
You must specify your home folder, i.e., from your workstation do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rsync -avz LOCAL_FILES pergamon:/volume1/homes/USERNAME&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Mounting your Synology folder on OS X ===&lt;br /&gt;
&lt;br /&gt;
On your Mac, start Finder, select &#039;Go&#039; and then &#039;Connect to Server&#039;.  In server address, enter:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
afp://pergamon.ms.northwestern.edu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
From the folders offered, select &#039;home&#039;. This folder is now available in Finder under &#039;Shared: pergamon&#039; and from the command line on your Mac via &#039;/Volumes/home&#039;.&lt;br /&gt;
&lt;br /&gt;
As an alternative, you can also mount your folder via the WebDAV protocol. This works in the same way, except that you enter the following for the server address:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
https://pergamon.ms.northwestern.edu:5012&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Accessing your Synology folder on your Linux workstation via WebDAV ===&lt;br /&gt;
&lt;br /&gt;
On Ubuntu, open Nautilus (see e.g. https://www.synology.com/en-global/knowledgebase/tutorials/610#t2_3) and choose &#039;&#039;&#039;Connect to server&#039;&#039;&#039;.  Then enter as &#039;&#039;Server Address&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
davs://pergamon.ms.northwestern.edu:5012&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
On openSuSE, open Dolphin (from launcher go to &amp;quot;Computer&amp;quot; and then &amp;quot;Network&amp;quot;).  Then choose &#039;&#039;&#039;Add Network Folder&#039;&#039;&#039;. In the dialog box, enter:&lt;br /&gt;
* &#039;&#039;&#039;Name:&#039;&#039;&#039; Pergamon&lt;br /&gt;
* &#039;&#039;&#039;User:&#039;&#039;&#039; your username&lt;br /&gt;
* &#039;&#039;&#039;Server:&#039;&#039;&#039; pergamon.ms.northwestern.edu&lt;br /&gt;
* &#039;&#039;&#039;Port:&#039;&#039;&#039; 5012&lt;br /&gt;
* &#039;&#039;&#039;Folder:&#039;&#039;&#039; /&lt;br /&gt;
* Check &#039;&#039;&#039;Use encryption&#039;&#039;&#039;.  It is possible that the port is then reset to 443.  If this happens, change it back to 5012.&lt;br /&gt;
&lt;br /&gt;
Then proceed via &#039;&#039;&#039;Save &amp;amp; Connect&#039;&#039;&#039;.  You will receive a warning about the SSL certificate.  Accept this.&lt;br /&gt;
&lt;br /&gt;
=== Mounting your Synology folder on your Linux workstation via WebDAV ===&lt;br /&gt;
&lt;br /&gt;
Prerequisite: the davfs driver must have been installed and configured, see below under &#039;Enabling davfs&#039;. Then, as regular user, do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mount /mnt/pergamon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To unmount, do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
umount /mnt/pergamon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This works well, but one problem I observed is that the creation time of folders copied TO the Synology folder is not preserved when using &#039;cp -p&#039; or &#039;cp -a&#039;. In principle this should be possible (they are preserved when using rsync), so this appears to be a bug.&lt;br /&gt;
&lt;br /&gt;
=== Mounting your Synology folder on your Linux workstation via NFS ===&lt;br /&gt;
&lt;br /&gt;
This is currently not enabled.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Administration ==&lt;br /&gt;
&lt;br /&gt;
=== Creating a new user ===&lt;br /&gt;
&lt;br /&gt;
* On the Control Panel, select &#039;&#039;User&#039;&#039;, &#039;&#039;Create&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
** Choose the same username as in NIS.&lt;br /&gt;
&lt;br /&gt;
** &#039;&#039;&#039;Join groups&#039;&#039;&#039;: Only &#039;&#039;users&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
** &#039;&#039;&#039;Assign shared folder permissions&#039;&#039;&#039;: &#039;&#039;read/write&#039;&#039; to &#039;&#039;&#039;homes&#039;&#039;&#039;, &#039;&#039;no access&#039;&#039; to all other folders.&lt;br /&gt;
&lt;br /&gt;
** &#039;&#039;&#039;User quota settings&#039;&#039;&#039;: 1000 GB.&lt;br /&gt;
&lt;br /&gt;
** &#039;&#039;&#039;Assign application permissions&#039;&#039;&#039;: &lt;br /&gt;
&lt;br /&gt;
** &#039;&#039;&#039;User speed limit setting&#039;&#039;&#039;: no limit.&lt;br /&gt;
&lt;br /&gt;
* After this, log in as root, and change /etc/passwd, such that for the new users &#039;&#039;&#039;/sbin/nologin&#039;&#039;&#039; is replaced with &#039;&#039;&#039;/bin/sh&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
* Also, while logged in as root, do &#039;&#039;&#039;chmod og-rx /volume1/homes/newuser&#039;&#039;&#039; (where &#039;&#039;&#039;newuser&#039;&#039;&#039; is the new username)&lt;br /&gt;
&lt;br /&gt;
=== Enabling davfs on Linux ===&lt;br /&gt;
&lt;br /&gt;
These instructions are for openSuSE 13.1.&lt;br /&gt;
&lt;br /&gt;
* Install davfs2 (see https://software.opensuse.org/package/davfs2)&lt;br /&gt;
* Add this line to &#039;&#039;&#039;/etc/fstab&#039;&#039;&#039;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
https://pergamon:5012   /mnt/pergamon   davfs   rw,noauto,user,file_mode=600,dir_mode=700 0 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Create mount point:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir /mnt/pergamon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=574</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=574"/>
		<updated>2015-09-25T23:58:01Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* General usage tips */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. &#039;&#039;&#039;This page does not provide a detailed manual for gnuplot&#039;&#039;&#039;, but instead focuses on specific aspects typically encountered in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh [additional options]&lt;br /&gt;
  set output &amp;quot;filename.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal via&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color [additional options]&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. One advantage of .eps files is that they can be edited directly in a text editor. See [[#eps-edit|below]] for an example.&lt;br /&gt;
Once the eps file has been formatted properly, you can convert it to PDF format using [http://www.ctan.org/pkg/epstopdf epstopdf]. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;textlabel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Journals typically prefer Helvetica as the typeface for figures.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;eps-edit&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;The origin should be marked with &#039;0&#039;, not &#039;0.0&#039;. If you produce a figure directly in PDF format, this can be fixed in Adobe Illustrator. However, it is easier to use the [[#Encapsulated PostScript terminal|EPS terminal]] and then edit the resulting .eps file using [http://www.grymoire.com/unix/sed.html sed]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot accepts abbreviated commands: you just have to enter enough characters to uniquely resolve a command. For example, it is acceptable to write&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; us 1:2:3 w err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
instead of&lt;br /&gt;
&amp;lt;pre&amp;gt;plot &amp;quot;file.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can plot compressed data files by sending the data through a pipe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; gzip -dc data.gz&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;To plot the average of columns that are spread over multiple files (but have the same number of lines in each file), take advantage of the [[Command-line_interface_on_Linux/UNIX#paste|paste]] command in Unix to combine them in single file. For example, if three files each contain two columns (x y), use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paste file1.dat file2.dat file3.dat &amp;gt; combined.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then within gnuplot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;combined.dat&amp;quot; us 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can even be done on the fly by using a pipe: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; paste file1.dat file2.dat file3.dat&#039; using 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can histogram data without the need for preprocessing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
binwidth=[binwidth]&lt;br /&gt;
bin(x,width)=width*floor(x/width) + binwidth/2.0&lt;br /&gt;
set boxwidth binwidth&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; using (bin($[colnum],binwidth)):(1.0) smooth freq with boxes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the user should replace &amp;lt;tt&amp;gt;[binwidth]&amp;lt;/tt&amp;gt; with the desired bin width and &amp;lt;tt&amp;gt;[colnum]&amp;lt;/tt&amp;gt; with the column number of the data to be binned.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executable version for OS X ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Compiled on OS X 10.10.3 (Yosemite)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Prior to using this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Current version is Gnuplot 5.0.1&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Includes GNU Readline library and PDF terminal&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local&lt;br /&gt;
sudo unzip /tmp/gnuplot_osx_501.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;You can now invoke gnuplot from a terminal window&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=573</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=573"/>
		<updated>2015-09-25T22:36:55Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* General usage tips */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. &#039;&#039;&#039;This page does not provide a detailed manual for gnuplot&#039;&#039;&#039;, but instead focuses on specific aspects typically encountered in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh [additional options]&lt;br /&gt;
  set output &amp;quot;filename.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal via&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color [additional options]&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. One advantage of .eps files is that they can be edited directly in a text editor. See [[#eps-edit|below]] for an example.&lt;br /&gt;
Once the eps file has been formatted properly, you can convert it to PDF format using [http://www.ctan.org/pkg/epstopdf epstopdf]. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;textlabel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Journals typically prefer Helvetica as the typeface for figures.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;eps-edit&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;The origin should be marked with &#039;0&#039;, not &#039;0.0&#039;. If you produce a figure directly in PDF format, this can be fixed in Adobe Illustrator. However, it is easier to use the [[#Encapsulated PostScript terminal|EPS terminal]] and then edit the resulting .eps file using [http://www.grymoire.com/unix/sed.html sed]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot accepts abbreviated commands: you just have to enter enough characters to uniquely resolve a command. For example, it is acceptable to write&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; us 1:2:3 w err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
instead of&lt;br /&gt;
&amp;lt;pre&amp;gt;plot &amp;quot;file.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can plot compressed data files by sending the data through a pipe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; gzip -dc data.gz&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;To plot the average of columns that are spread over multiple files (but have the same number of lines in each file), take advantage of the [[Command-line_interface_on_Linux/UNIX#paste|paste]] command in Unix to combine them in single file. For example, if three files each contain two columns (x y), use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paste file1.dat file2.dat file3.dat &amp;gt; combined.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then within gnuplot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;combined.dat&amp;quot; us 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can even be done on the fly by using a pipe: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; paste file1.dat file2.dat file3.dat&#039; using 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can histogram data without the need for preprocessing:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
rint(x)=(x-int(x)&amp;gt;0.9999)?int(x)+1:int(x)&lt;br /&gt;
binwidth=[binwidth]&lt;br /&gt;
bin(x,width)=width*rint(x/width) + binwidth/2.0&lt;br /&gt;
set boxwidth binwidth&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; using (bin($[colnum],binwidth)):1.0 smooth freq with boxes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where the user should replace &amp;lt;tt&amp;gt;[binwidth]&amp;lt;/tt&amp;gt; with the desired bin width and &amp;lt;tt&amp;gt;[colnum]&amp;lt;/tt&amp;gt; with the column number of the data to be binned.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executable version for OS X ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Compiled on OS X 10.10.3 (Yosemite)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Prior to using this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Current version is Gnuplot 5.0.1&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Includes GNU Readline library and PDF terminal&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_501.zip gnuplot_osx_501.zip] and save to &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd /usr/local&lt;br /&gt;
sudo unzip /tmp/gnuplot_osx_501.zip&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;You can now invoke gnuplot from a terminal window&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Note: Older version still available: [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip version 4.6.5], compiled on OS X 10.9.3 (Mavericks)&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=572</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=572"/>
		<updated>2015-07-08T15:07:41Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The CSML uses Torque with Maui for most of its job scheduling. Please see the Cambridge Dept. of Chemistry&#039;s [http://www.ch.cam.ac.uk/computing/maui-and-torque-introduction user guide] for information on submitting and checking jobs, and the associated [http://www.ch.cam.ac.uk/computing/maui-administration admin guide] for more job scheduling tools.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;qb is a succinct queue monitoring script that tallies each user&#039;s running and queued jobs, total cores used and free, and down nodes (if any). The script was originally written by Daniel Sinkovits and should be available to copy from another user&#039;s bin to your own. Maintenance includes keeping the username list up-to-date and adjusting the variable &amp;lt;tt&amp;gt;node_total&amp;lt;/tt&amp;gt; (currenlty 37) if a node goes down permanently.&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [min_job_id] [max_job_id]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=571</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=571"/>
		<updated>2015-07-08T15:07:17Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The CSML uses Torque with Maui for most of its job scheduling. Please see the Cambridge Dept. of Chemistry&#039;s [http://www.ch.cam.ac.uk/computing/maui-and-torque-introduction user guide] for information on submitting and checking jobs, and the associated [http://www.ch.cam.ac.uk/computing/maui-administration admin guide] for more job scheduling tools.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;qb is a succinct queue monitoring script that tallies each user&#039;s running and queued jobs, total cores used and free, and down nodes (if any). The script was originally written by Daniel Sinkovits and should be available to copy from any other user&#039;s bin to your own. Maintenance includes keeping the username list up-to-date and adjusting the variable &amp;lt;tt&amp;gt;node_total&amp;lt;/tt&amp;gt; (currenlty 37) if a node goes down permanently.&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [min_job_id] [max_job_id]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=570</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=570"/>
		<updated>2015-07-08T15:06:52Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The CSML uses Torque with Maui for most of its job scheduling. Please see the Cambridge Dept. of Chemistry&#039;s [http://www.ch.cam.ac.uk/computing/maui-and-torque-introduction user guide] for information on submitting and checking jobs, and the associated [http://www.ch.cam.ac.uk/computing/maui-administration admin guide] for more job scheduling tools.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;qb is a succinct queue monitoring script that tallies each user&#039;s running and queued jobs, total cores used and free, and down nodes (if any). The script was originally written by Daniel Sinkovits and should be available to copy from any other user&#039;s directory to your own. Maintenance includes keeping the username list up-to-date and adjusting the variable &amp;lt;tt&amp;gt;node_total&amp;lt;/tt&amp;gt; (currenlty 37) if a node goes down permanently.&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [min_job_id] [max_job_id]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=569</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=569"/>
		<updated>2015-06-25T20:47:41Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The CSML uses Torque with Maui for most of its job scheduling. Please see the Cambridge Dept. of Chemistry&#039;s [http://www.ch.cam.ac.uk/computing/maui-and-torque-introduction user guide] for information on submitting and checking jobs, and the associated [http://www.ch.cam.ac.uk/computing/maui-administration admin guide] for more job scheduling tools.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [min_job_id] [max_job_id]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Hardware&amp;diff=546</id>
		<title>Hardware</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Hardware&amp;diff=546"/>
		<updated>2015-05-02T21:27:29Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Checking RAID status */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Desktop machines ===&lt;br /&gt;
&lt;br /&gt;
All desktop machines run [http://www.opensuse.org OpenSuSE]. [[Installation instructions for OpenSuSE 13.1]].&lt;br /&gt;
&lt;br /&gt;
[http://ariadne.ms.northwestern.edu/speedtest/ Server connection speed]&lt;br /&gt;
&lt;br /&gt;
[[Etiquette: Running Nice on other desktop machines]]&lt;br /&gt;
&lt;br /&gt;
=== Clusters ===&lt;br /&gt;
&lt;br /&gt;
==== Minotaur ====&lt;br /&gt;
* 38 nodes, each containing two 4-core processors (304 cores total). 8 GB memory per node.&amp;lt;br&amp;gt;Processor type: Intel Xeon E5472, 3.0 GHz.&lt;br /&gt;
* Jobs are scheduled via [http://www.adaptivecomputing.com/products/open-source/torque/ Torque]/Maui.  [[Notes on Torque]].&lt;br /&gt;
&lt;br /&gt;
==== Hydra ====&lt;br /&gt;
* 60 nodes, each containing two 6-core processors (720 cores total). 12 GB memory per node.&amp;lt;br&amp;gt;8 nodes (queue &amp;quot;fast&amp;quot;, nodes h001-h008) have Intel Xeon X5690 3.47 GHz processors.&amp;lt;br&amp;gt;52 nodes (queue &amp;quot;default&amp;quot;, nodes h009-h060) have Intel Xeon E5645 2.40 GHz processors.&lt;br /&gt;
* Jobs are scheduled via [http://www.adaptivecomputing.com/products/open-source/torque/ Torque]/Maui.  [[Notes on Torque]].&lt;br /&gt;
* [[General Usage of Hydra]]&lt;br /&gt;
&lt;br /&gt;
==== Quest ====&lt;br /&gt;
* Jobs are scheduled via [http://www.adaptivecomputing.com/products/open-source/torque/ Torque]/Moab.  [[Notes on Torque]].&lt;br /&gt;
* [[General Usage of Quest]]&lt;br /&gt;
&lt;br /&gt;
=== Disk space, backups, and RAID storage ===&lt;br /&gt;
&lt;br /&gt;
==== Disk space allocations and nightly backups ====&lt;br /&gt;
&lt;br /&gt;
Each user has a home directory located on &#039;&#039;ariadne&#039;&#039;.  This home directory is exported to all desktop machines, so that you see the same home filesystem on each machine.  The drive is protected against hardware failure via a [[http://en.wikipedia.org/wiki/RAID_1#RAID_1 RAID-1]] setup.  Furthermore, each night all new or modified files on /home are written to tape (located in ariadne).  This makes it important not to store temporary data in your home folder, as it would quickly fill up the tape.  Since users tend to forget this, a quota system has been enabled on ariadne, restricting each user to 15 GB. To check how much space you are using log on to ariadne and issue the command&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
quota -s&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
In addition, each user has significant additional storage on the scratch partitions. These drives are located in the different desktop machines and protected via RAID-1, but backups are your own responsibility. Note that these partitions are generally only mounted on the desktop machine that contains the corresponding drives. If you need a partition to be exported to a different machine, please ask.&lt;br /&gt;
&lt;br /&gt;
==== Changing the nightly backup tape ====&lt;br /&gt;
&lt;br /&gt;
# Press eject button on tape drive in ariadne.&lt;br /&gt;
# Take the tape cartridge out of the drive and put it in its box (should be on top of ariadne). Label the box. Give to Erik.&lt;br /&gt;
# Insert cleaning tape (on top of ariadne).  It will work for less than a minute and then eject automatically.&lt;br /&gt;
# Put cleaning tape back in box on top of ariadne.&lt;br /&gt;
# Insert new DDS tape (find in cabinet).  Leave empty box on top of ariadne.&lt;br /&gt;
# Erik: Update settings in /usr/local/lib/backup, namely &#039;&#039;position&#039;&#039; and &#039;&#039;tapenumber&#039;&#039;; update logfile.&lt;br /&gt;
&lt;br /&gt;
==== Recovering data from the nightly backup tape ====&lt;br /&gt;
&lt;br /&gt;
Log files of all nightly backup tapes are located on ariadne, in /usr/local/lib/backup. For privacy reasons, these logfiles are only accessible to root. Once the proper file to be recovered has been identified, insert the corresponding tape into the drive on ariadne and follow these steps (all to be executed as root):&lt;br /&gt;
&lt;br /&gt;
# &amp;lt;tt&amp;gt;cd /&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;(if you change to a different directory, the recovered file will be placed relative to this directory)&lt;br /&gt;
# &amp;lt;tt&amp;gt;/usr/local/bin/tape-rewind&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;(or &amp;lt;tt&amp;gt;mtst -f /dev/nst0 rewind&amp;lt;/tt&amp;gt;)&lt;br /&gt;
# &amp;lt;tt&amp;gt;mtst -f /dev/nst0 fsf &amp;lt;position&amp;gt;&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;(see the contents file in /usr/local/lib/backup for the position number)&lt;br /&gt;
# &amp;lt;tt&amp;gt;tar xzvf /dev/nst0 &amp;lt;full_file_name_without_leading_slash&amp;gt;&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;This step won&#039;t work unless you omit the leading slash; also note that you can specify multiple files, separated by spaces. The &#039;z&#039; option is necessary because all nightly backups are compressed. For wildcards, use --wildcards and escape &#039;*&#039; and &#039;?&#039;. For example: &amp;lt;tt&amp;gt;tar -x --wildcards -zvf /dev/nst0 \*datafiles\*&amp;lt;/tt&amp;gt;&lt;br /&gt;
# &amp;lt;tt&amp;gt;/usr/local/bin/tape-rewoffl&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;(or &amp;lt;tt&amp;gt;mtst -f /dev/nst0 rewoffl&amp;lt;/tt&amp;gt;)&lt;br /&gt;
&lt;br /&gt;
==== Archiving data using the LTO tape drive ====&lt;br /&gt;
&lt;br /&gt;
==== Checking RAID status ====&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;hydra&amp;quot;&amp;gt;Hydra&amp;lt;/span&amp;gt;&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;OS is on software RAID (which spans /dev/sda and /dev/sdb). An overview is obtained via&lt;br /&gt;
&amp;lt;pre&amp;gt;cat /proc/mdstat&amp;lt;/pre&amp;gt;&lt;br /&gt;
Detailed information via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mdadm --detail /dev/mdX&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where X = 1, 5, 6, 7. Also see [[Setting up e-mail notifications for Linux Software RAID]].&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/home&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;/archive&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Minotaur&amp;lt;br&amp;gt;Web interface. Log in to the head node and use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
opera http://172.16.0.101&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
RAID status is visible on the top line of the Raid Set Heirarchy table, under Volume State. For drive stability click any channel and find the SMART Attributes at the bottom of the page. Each has two values, Attribute and Threshold (Threshold is in parentheses). An Attribute value lower than Threshold indicates an unstable drive.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Ariadne&amp;lt;br&amp;gt;RAID-5 controller with 4 drives.  Status can be checked by interrogating the controller:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/MegaRAID/MegaCli/MegaCli64 -AdpAllInfo -aALL | less&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
In the &#039;Device Present&#039; section, it is reported if any drives are critical or have failed, and what the state of the RAID is. More detailed information can also be found via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
/opt/MegaRAID/MegaCli/MegaCli64 -LDPDInfo -aAll | less&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Directly at the beginning (under &#039;Adapter #0&#039;) it should report &#039;State: Optimal&#039;&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Desktop machines, except pelops&amp;lt;br&amp;gt;Hardware RAID-1. The RAID status is reported upon reboot of a machine. Press Ctrl-C (when prompted) to enter the configuration utility. From within Linux, use (as root):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mpt-status -i 0&lt;br /&gt;
mpt-status -i 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
The second command only applies to machines with a second set of hard drives (achilles, agamemnon, nestor, poseidon)&amp;lt;br&amp;gt;&lt;br /&gt;
To allow regular users to verify the RAID status, the &amp;lt;tt&amp;gt;mpt-status&amp;lt;/tt&amp;gt; has been added to &amp;lt;tt&amp;gt;sudo&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo mpt-status -i 0&lt;br /&gt;
sudo mpt-status -i 2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Pelops: Software RAID (for OS and scratch partitions). See [[#hydra|Hydra]].&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Printers ===&lt;br /&gt;
There are two black-and-white laser printers (PS1 and PS2) in the lab, both supporting double-sided printing. For network printing, use luijten-ps1.ms.northwestern.edu and luijten-ps2.ms.northwestern.edu, respectively. For OS X, choose &amp;quot;HP JetDirect&amp;quot; as the protocol.&lt;br /&gt;
&lt;br /&gt;
=== Scanner ===&lt;br /&gt;
&lt;br /&gt;
=== UPS ===&lt;br /&gt;
&lt;br /&gt;
All our UPS units are manufactured by APC, and supported via apcupsd. Installation &amp;amp; configuration instructions:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Make sure sure the &amp;lt;tt&amp;gt;apcupsd&amp;lt;/tt&amp;gt; package is installed, see [[Installation instructions for OpenSuSE 13.1]].&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Connect UPS unit to USB port of the corresponding machine.&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;In &amp;lt;tt&amp;gt;/etc/apcupsd/apcupsd.conf&amp;lt;/tt&amp;gt; edit these lines:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
UPSCABLE usb&lt;br /&gt;
UPSTYPE usb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Also, &#039;&#039;&#039;comment out&#039;&#039;&#039; the &amp;lt;tt&amp;gt;DEVICE&amp;lt;/tt&amp;gt; line.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;From command line, do&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
chkconfig apcupsd on&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Start the daemon manually:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apcupsd&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Test it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apcaccess&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This should produce extensive output regarding the UPS unit.&amp;lt;br&amp;gt;&lt;br /&gt;
(Note: this command also works for regular users; in that case use &amp;lt;tt&amp;gt;/usr/sbin/apcaccess&amp;lt;/tt&amp;gt;.)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=538</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=538"/>
		<updated>2015-04-01T22:45:49Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. &#039;&#039;&#039;This page does not provide a detailed manual for gnuplot&#039;&#039;&#039;, but instead focuses on specific aspects typically encountered in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh [additional options]&lt;br /&gt;
  set output &amp;quot;filename.pdf&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal via&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color [additional options]&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. One advantage of .eps files is that they can be edited directly in a text editor. See [[#eps-edit|below]] for an example.&lt;br /&gt;
Once the eps file has been formatted properly, you can convert it to PDF format using [http://www.ctan.org/pkg/epstopdf epstopdf]. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;textlabel&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {/Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Journals typically prefer Helvetica as the typeface for figures.&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;&amp;lt;span id=&amp;quot;eps-edit&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;The origin should be marked with &#039;0&#039;, not &#039;0.0&#039;. If you produce a figure directly in PDF format, this can be fixed in Adobe Illustrator. However, it is easier to use the [[#Encapsulated PostScript terminal|EPS terminal]] and then edit the resulting .eps file using [http://www.grymoire.com/unix/sed.html sed]:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot accepts abbreviated commands: you just have to enter enough characters to uniquely resolve a command. For example, it is acceptable to write&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;file.dat&amp;quot; us 1:2:3 w err&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
instead of&lt;br /&gt;
&amp;lt;pre&amp;gt;plot &amp;quot;file.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Gnuplot can plot compressed data files by sending the data through a pipe:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; gzip -dc data.gz&#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;To plot the average of columns that are spread over multiple files (but have the same number of lines in each file), take advantage of the [[Command-line_interface_on_Linux/UNIX#paste|paste]] command in Unix to combine them in single file. For example, if three files each contain two columns (x y), use&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
paste file1.dat file2.dat file3.dat &amp;gt; combined.dat&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
and then within gnuplot&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &amp;quot;combined.dat&amp;quot; us 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
This can even be done on the fly by using a pipe: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
plot &#039;&amp;lt; paste file1.dat file2.dat file3.dat&#039; using 1:(($2+$4+$6)/3)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Executable version for OS X ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Compiled on OS X 10.9.3 (Mavericks), but has been tested to also work on OS X 10.10 (Yosemite)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Prior to using this, you need to install X11/XQuartz (http://xquartz.macosforge.org/landing/)&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Current version is Gnuplot 4.6.5&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Includes GNU Readline library and PDF terminal&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;Installation procedure is not very sophisticated, but the resulting installation will be correct. First download [http://ariadne.ms.northwestern.edu/Download/Gnuplot/gnuplot_osx_465.zip gnuplot_osx_465.zip] and save to &amp;lt;tt&amp;gt;/tmp&amp;lt;/tt&amp;gt;. Then:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
sudo bash&lt;br /&gt;
cd /usr/local&lt;br /&gt;
unzip /tmp/gnuplot_osx_465.zip&lt;br /&gt;
exit&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;You can now invoke gnuplot from a terminal window&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=490</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=490"/>
		<updated>2015-01-28T20:31:42Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [min_job_id] [max_job_id]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=489</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=489"/>
		<updated>2015-01-28T20:30:41Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use it for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [job_id1] [job_id2]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[job_id1]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[job_id2]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Miscellaneous_notes&amp;diff=486</id>
		<title>Miscellaneous notes</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Miscellaneous_notes&amp;diff=486"/>
		<updated>2015-01-28T16:22:15Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page contains assorted topics relevant to day-to-day operations in the lab. For any questions not covered, please contact the MSE office at (847) 491-3537.&lt;br /&gt;
&lt;br /&gt;
==Item Disposal==&lt;br /&gt;
&lt;br /&gt;
The custodial staff can dispose of most items. Reusable items such as computer supplies can be disposed of via [http://www.northwestern.edu/uservices/office/computer/staff.html University Services]. Follow the appropriate &amp;quot;Schedule a Pick-Up&amp;quot; link for the item you are disposing of.&lt;br /&gt;
&lt;br /&gt;
== Carpet cleaning ==&lt;br /&gt;
&lt;br /&gt;
Schedule a carpet cleaning every 6-12 months by contacting [mailto:d-dennett@northwestern.edu Deirdre Dennett]. An annual reminder for September 19th is set on the group calendar, however there is no need to wait until then.&lt;br /&gt;
&lt;br /&gt;
==Ordering supplies==&lt;br /&gt;
&lt;br /&gt;
Order supplies with the following steps:&lt;br /&gt;
*Sign up for an iBuyNU account.&lt;br /&gt;
**Call the MSE office at (847) 491-3537.&lt;br /&gt;
**Obtain and fill out all necessary forms.&lt;br /&gt;
**There is a waiting time of up to two weeks.&lt;br /&gt;
*[https://nuportal.northwestern.edu/wps/nuportal/ibuynu/ibuynu.html Log on] and select any items from any suppliers you like.&lt;br /&gt;
*&amp;quot;Check out&amp;quot; from the individual suppliers so you have an iBuyNU shopping cart.&lt;br /&gt;
*Send a PDF copy of the cart to Erik and request that he forward his approval to msepurchasing@northwestern.edu. &lt;br /&gt;
*Use the Assign Cart button to assign your cart to [mailto:boe.welter@northwestern.edu Boe Welter].&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Miscellaneous_notes&amp;diff=482</id>
		<title>Miscellaneous notes</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Miscellaneous_notes&amp;diff=482"/>
		<updated>2015-01-19T22:49:32Z</updated>

		<summary type="html">&lt;p&gt;Bernie: Random lab tasks&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This page contains assorted topics relevant to day-to-day operations in the lab. For any questions not covered, please contact the MSE office at (847) 491-3537.&lt;br /&gt;
&lt;br /&gt;
== Carpet cleaning ==&lt;br /&gt;
&lt;br /&gt;
Schedule a carpet cleaning every 6-12 months by contacting [mailto:d-dennett@northwestern.edu Deirdre Dennett]. An annual reminder for September 19th is set on the group calendar, however there is no need to wait until then.&lt;br /&gt;
&lt;br /&gt;
==Ordering supplies==&lt;br /&gt;
&lt;br /&gt;
Order supplies with the following steps:&lt;br /&gt;
*Sign up for an iBuyNU account.&lt;br /&gt;
**Call the MSE office at (847) 491-3537.&lt;br /&gt;
**Obtain and fill out all necessary forms.&lt;br /&gt;
**There is a waiting time of up to two weeks.&lt;br /&gt;
*[https://nuportal.northwestern.edu/wps/nuportal/ibuynu/ibuynu.html Log on] and select any items from any suppliers you like.&lt;br /&gt;
*&amp;quot;Check out&amp;quot; from the individual suppliers so you have an iBuyNU shopping cart.&lt;br /&gt;
*Send a PDF copy of the cart to Erik and request that he forward his approval to msepurchasing@northwestern.edu. &lt;br /&gt;
*Use the Assign Cart button to assign your cart to [mailto:boe.welter@northwestern.edu Boe Welter].&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=User:Bernie&amp;diff=481</id>
		<title>User:Bernie</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=User:Bernie&amp;diff=481"/>
		<updated>2015-01-19T21:48:15Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Bernard Beckerman has been in the Luijten group since September 2010 and specializes in simulations of biological many-body systems, especially surfaces and biointerfaces. Bernard has a BS in Physics and Mathematics from NYU where he did research with David Pine on the rheometry of liquid crystals.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=407</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=407"/>
		<updated>2014-08-14T19:03:13Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* LAMMPS Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
By and large the CSML uses [http://lammps.sandia.gov/ LAMMPS] for MD, though depending on the application [http://www.ks.uiuc.edu/Research/namd/ NAMD], [http://www.gromacs.org/ GROMACS], or any of [http://en.wikipedia.org/wiki/List_of_software_for_molecular_mechanics_modeling a host of other packages] may be useful. Most issues can be resolved by consulting the [http://lammps.sandia.gov/doc/Manual.html LAMMPS manual], though some common problems are addressed below.&lt;br /&gt;
&lt;br /&gt;
===LAMMPS Special Usage Notes===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;li&amp;gt;&lt;br /&gt;
By default LAMMPS normalizes the temperature by an amount &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is the system&#039;s total number of degrees of freedom and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; is the system&#039;s dimensionality. Subtracting &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; accounts for the center-of-mass motion of the system. This leads to an incorrect reported value if the system has a proper frame of reference, e.g., when using a [http://lammps.sandia.gov/doc/fix_langevin.html Langevin thermostat] in which all particles interact with a stationary background solvent. In this case it is necessary to ensure &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is used instead of &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;. To do this, use [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As a note, the above only affects the reported temperature. The dynamics are computed correctly regardless.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=319</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=319"/>
		<updated>2014-06-13T02:30:48Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of Minotaur or Hydra to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use if for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [job_id1] [job_id2]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[job_id1]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[job_id2]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=318</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=318"/>
		<updated>2014-06-13T02:23:27Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ul&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;If qb indicates a node is down, check the ganglia of [http://minotaur.research.northwestern.edu/ganglia/index.php Minotaur] or [https://hydra.research.northwestern.edu/ganglia/ Hydra] to find which node it is (down nodes are in red at the top of the list). Grep the output of qstat to find the jobs running on any down nodes with&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qstat -f | grep -B 3 [node_ID]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[node_ID]&amp;lt;/tt&amp;gt; is the name of the down node, e.g., &amp;lt;tt&amp;gt;h036&amp;lt;/tt&amp;gt; on Hydra. Make sure the owners of all jobs on the node have a chance to take note of which of their jobs went down and then restart the down nodes using Microway control.&lt;br /&gt;
&amp;lt;li&amp;gt;Change the total cpu time allotted to a job via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Lowering the cpu time requirement of a job can decrease its wait time in the queue, as the scheduler is more likely to be able to use if for backfilling.  On the other hand, increasing the cpu time requirement can be used to ensure that a job is able to finish properly (and can be done even while the job is running), but requires root permission.&lt;br /&gt;
&amp;lt;/li&amp;gt;&lt;br /&gt;
&amp;lt;li&amp;gt;Move a queued (i.e., waiting) job to a different queue via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qmove [destination] [job_id]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[destination]&amp;lt;/tt&amp;gt; is the new queue (either &#039;fast&#039; or &#039;default&#039; for our system) and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job ID.&lt;br /&gt;
&amp;lt;li&amp;gt;Delete sequence of jobs via&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
qdel `seq [job_id1] [job_id2]`&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where &amp;lt;tt&amp;gt;[job_id1]&amp;lt;/tt&amp;gt; is the first job ID of the sequence of jobs you want to delete and &amp;lt;tt&amp;gt;[job_id2]&amp;lt;/tt&amp;gt; is the last one.&lt;br /&gt;
&amp;lt;/ul&amp;gt;&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=317</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=317"/>
		<updated>2014-06-12T22:56:58Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Molecular dynamics simulations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
By and large the CSML uses [http://lammps.sandia.gov/ LAMMPS] for MD, though depending on the application [http://www.ks.uiuc.edu/Research/namd/ NAMD], [http://www.gromacs.org/ GROMACS], or any of [http://en.wikipedia.org/wiki/List_of_software_for_molecular_mechanics_modeling a host of other packages] may be useful. Most issues can be resolved by consulting the [http://lammps.sandia.gov/doc/Manual.html LAMMPS manual], though some common problems are addressed below.&lt;br /&gt;
&lt;br /&gt;
===LAMMPS Special Usage Notes===&lt;br /&gt;
By default LAMMPS normalizes the temperature by an amount &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is the system&#039;s total number of degrees of freedom and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; is the system&#039;s dimensionality. Subtracting &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; accounts for the center-of-mass motion of the system. This leads to an incorrect &#039;&#039;reported&#039;&#039; value if the system has a proper frame of reference, e.g., when using a [http://lammps.sandia.gov/doc/fix_langevin.html Langevin thermostat] in which all particles interact with a stationary background solvent. In this case it is necessary to ensure &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is used instead of &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;. To do this, use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=316</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=316"/>
		<updated>2014-06-12T21:59:23Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default LAMMPS normalizes the temperature by an amount &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is the system&#039;s total number of degrees of freedom and &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; is the system&#039;s dimensionality. Subtracting &amp;lt;math&amp;gt;d&amp;lt;/math&amp;gt; accounts for the center-of-mass motion of the system. This is incorrect if the system has a proper frame of reference, e.g., when using a Langevin thermostat in which all particles interact with a stationary background solvent. In this case it is necessary to ensure &amp;lt;math&amp;gt;n_\text{dof}&amp;lt;/math&amp;gt; is used instead of &amp;lt;math&amp;gt;n_\text{dof} - d&amp;lt;/math&amp;gt;. To do this, use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=284</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=284"/>
		<updated>2014-06-08T00:14:38Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default LAMMPS normalizes the temperature by an amount &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;, where &#039;&#039;dof&#039;&#039; is the system&#039;s total number of degrees of freedom and &#039;&#039;d&#039;&#039; is the system&#039;s dimensionality. Subtracting &#039;&#039;d&#039;&#039; accounts for the center-of-mass motion of the system. This is incorrect if the system has a proper frame of reference, e.g., when using a Langevin thermostat in which all particles interact with a stationary background solvent. In this case it is necessary to ensure &#039;&#039;dof&#039;&#039; is used instead of &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;. To do this, use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] as follows&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=283</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=283"/>
		<updated>2014-06-08T00:03:00Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default LAMMPS normalizes the temperature by an amount &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;, where &#039;&#039;dof&#039;&#039; is the system&#039;s total number of degrees of freedom and &#039;&#039;d&#039;&#039; is the dimensionality of the simulation. Subtracting &#039;&#039;d&#039;&#039; accounts for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure &#039;&#039;dof&#039;&#039; is used instead of &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;. For instance one can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=282</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=282"/>
		<updated>2014-06-08T00:02:25Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default, LAMMPS normalizes the temperature by an amount &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;, where &#039;&#039;dof&#039;&#039; is the system&#039;s total number of degrees of freedom and &#039;&#039;d&#039;&#039; is the dimensionality of the simulation. Subtracting &#039;&#039;d&#039;&#039; accounts for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure &#039;&#039;dof&#039;&#039; is used instead of &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;. For instance one can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=281</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=281"/>
		<updated>2014-06-08T00:02:03Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default, LAMMPS normalizes the temperature by an amount &#039;&#039;dof&#039;&#039; – &#039;&#039;d&#039;&#039;, where &#039;&#039;dof&#039;&#039; is the system&#039;s total number of degrees of freedom and &#039;&#039;d&#039;&#039; is the dimensionality of the simulation. Subtracting &#039;&#039;d&#039;&#039; accounts for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure &#039;&#039;dof&#039;&#039; is used instead of &#039;&#039;dof&#039;&#039; - &#039;&#039;d&#039;&#039;. For instance one can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=280</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=280"/>
		<updated>2014-06-07T23:52:11Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default, LAMMPS normalizes the temperature by an amount (dof - d), where dof is the system&#039;s total number of degrees of freedom and d is the dimensionality of the simulation. Subtracting d accounts for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure dof is used instead of (dof - d). For instance one can use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=279</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=279"/>
		<updated>2014-06-07T23:51:36Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special Usage Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default, LAMMPS normalizes the temperature by an amount (dof - d), where dof is the system&#039;s total number of degrees of freedom and d is the dimensionality of the simulation. Subtracting d accounts for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure dof is used instead of (dof - d). An example is as follows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
compute myTemp all temp&lt;br /&gt;
compute_modify myTemp extra 0&lt;br /&gt;
thermo_modify temp myTemp&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=278</id>
		<title>Simulations</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Simulations&amp;diff=278"/>
		<updated>2014-06-07T23:39:50Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Molecular dynamics simulations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
Assorted topics relevant to programming particle-based simulation codes and to using these codes for the modeling of a wide range of systems, notably complex fluids.&lt;br /&gt;
&lt;br /&gt;
== Molecular dynamics simulations ==&lt;br /&gt;
&lt;br /&gt;
===Special Usage Notes===&lt;br /&gt;
By default, LAMMPS normalizes the temperature by an amount (dof - d), where dof is the system&#039;s total number of degrees of freedom and d is the dimensionality of the simulation. (dof - d) is used to account for the center-of-mass motion of the system. This is correct except when there is a proper frame of reference for the system, e.g., in a Langevin dynamics simulation in which the implicit background solvent has zero average velocity. In this case it is necessary to use the command [http://lammps.sandia.gov/doc/compute_modify.html compute_modify] to ensure dof is used instead of (dof - d), as follows.&lt;br /&gt;
&lt;br /&gt;
== Monte Carlo simulations ==&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=181</id>
		<title>Notes on Torque</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Notes_on_Torque&amp;diff=181"/>
		<updated>2014-05-20T18:09:02Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /*Torque Notes*/&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
To change, e.g., the total cpu time allotted to a given job, one can use&lt;br /&gt;
  qalter -l cput=[new_cput] [job_id]&lt;br /&gt;
where &amp;lt;tt&amp;gt;[new_cput]&amp;lt;/tt&amp;gt; is the desired amount of cpu time and &amp;lt;tt&amp;gt;[job_id]&amp;lt;/tt&amp;gt; is the job&#039;s ID number. Multiple jobs can be changed simultaneously by using &amp;lt;tt&amp;gt;`seq [min_job_id] [max_job_id]`&amp;lt;/tt&amp;gt; in the place of &amp;lt;tt&amp;gt;job_id&amp;lt;/tt&amp;gt;. This will change all jobs &amp;lt;tt&amp;gt;[min_job_id]&amp;lt;/tt&amp;gt; through &amp;lt;tt&amp;gt;[max_job_id]&amp;lt;/tt&amp;gt;. Note that only root can increase cput with this method.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Tools&amp;diff=180</id>
		<title>Tools</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Tools&amp;diff=180"/>
		<updated>2014-05-20T17:57:30Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&#039;&#039;&#039;Analysis tools&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Computer simulations involve the use of a set of analysis tools. Here, we share notes and ideas on programs commonly used in the CSML.&lt;br /&gt;
&lt;br /&gt;
* [[Autocorrelation]]&lt;br /&gt;
* [[Generic Analyzer]]&lt;br /&gt;
* [[Gnuplot]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Document processing&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Ideally, we prepare manuscripts in [http://en.wikipedia.org/wiki/LaTeX LaTeX].  Occasionally, especially when collaborating with other research groups, it may be necessary to work in Microsoft Word.&lt;br /&gt;
&lt;br /&gt;
* [[Notes on using LaTeX for manuscripts]]&lt;br /&gt;
* [[Notes on using Microsoft Word for manuscripts]]&lt;br /&gt;
* [[Journal-specific information]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Job scheduling&#039;&#039;&#039;&lt;br /&gt;
* [[Notes on Torque]]&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=179</id>
		<title>Generic Analyzer</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=179"/>
		<updated>2014-05-20T17:54:36Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Interpreting GA output */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;generic analyzer&amp;quot; (GA) is a program available on all [[hardware|local machines]], allowing rapid statistical analysis of typical simulation data. It is particularly useful for processing output from Monte Carlo and molecular dynamics simulations.&lt;br /&gt;
&lt;br /&gt;
Data files are expected to be arranged in columns, and the GA will provide the average of each column, along with its standard deviation and correlation coefficient.  As a rule of thumb, if the correlation coefficient is above 0.1, the data are considered correlated and the standard deviation is underestimated.  This is typical for simulation data when sampling takes place more often than the autocorrelation time.  To address this, GA will group the data in blocks and make another pass.  The number of data points is now decreased, generally reducing the correlation coefficient.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
  generic_analyzer [options] &#039;&#039;filename&#039;&#039; [columns]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; is a plain text file. Lines starting with a &#039;#&#039; will be ignored (use this feature to insert column descriptions and other information into your simulation data).  If &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; ends with &#039;&amp;lt;tt&amp;gt;.gz&amp;lt;/tt&amp;gt;&#039; the file is assumed to be compressed with [http://en.wikipedia.org/wiki/Gzip gzip] and will be decompressed by GA on the fly.  Note that this happens in memory; no decompressed version of the file is written to disk.  This has the advantage that no additional disk space is required and that no additional time is required to compress the data again after the analysis.&lt;br /&gt;
&lt;br /&gt;
If the number of &amp;lt;tt&amp;gt;columns&amp;lt;/tt&amp;gt; is not provided, GA will determine it from the first non-comment line in the file.  Otherwise, only the number of columns indicated will be analyzed.  Also note the [[#c-option|&amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;]] option below.&lt;br /&gt;
&lt;br /&gt;
To read from standard input instead of a file, specify &#039;&#039;STDIN&#039;&#039; as the filename.&lt;br /&gt;
&lt;br /&gt;
==== Options ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;a-option&amp;quot;&amp;gt;-a&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples (but note that this number is reduced for files that contain large numbers of columns, see [[#Memory considerations|Memory considerations]] below). This option multiplies the maximum number of entries by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;c-option&amp;quot;&amp;gt;-c&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;Ignore the first &#039;&#039;n&#039;&#039; columns on each line. If the number of columns is specified explicitly on the command-line, these columns are counted &#039;&#039;after&#039;&#039; the ignored columns.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;i-option&amp;quot;&amp;gt;-i&amp;lt;/tt&amp;gt; &#039;&#039;m&#039;&#039;&amp;lt;br&amp;gt;Discard the first &#039;&#039;m&#039;&#039; samples. Note that comment lines are not counted as samples. This option is normally employed to exclude simulation data taken when a system is not equilibrated yet.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;o-option&amp;quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Redirect the data normally written to [[#ana.dat|ana.dat]] (see below) to &#039;&#039;filename&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Interpreting GA output ===&lt;br /&gt;
&lt;br /&gt;
When reading the output for a given column, start at the top, and go down until you have reached the first estimate for which the correlation coefficient is less than 0.1.  This line provides the proper estimate of the standard deviation.  To help you quickly locate this line, it is marked by a &#039;&amp;lt;&#039; at the end.  Note that the correlation time can be different for different columns.  The summary printed at the end of the output provides the average of each column along with the correct standard deviation and the number of independent samples.  If the data in a certain column are not decorrelated even at the most coarse blocking level, a warning is issued.&lt;br /&gt;
&lt;br /&gt;
The screen output of GA can be redirected to a file, but it must be noted that all output is written to &amp;lt;tt&amp;gt;stderr&amp;lt;/tt&amp;gt;.  When using the [http://en.wikipedia.org/wiki/Bash_(Unix_shell) bash shell], redirection is achieved via &lt;br /&gt;
&lt;br /&gt;
  generic_analyzer file 2&amp;gt; redirected_output&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;ana.dat&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
GA also writes a compact version of the analysis results to a file. For &#039;&#039;n&#039;&#039; columns, this file contains a single line of the format &#039;A1 S1 A2 S2 ... A&#039;&#039;n&#039;&#039; S&#039;&#039;n&#039;&#039;&#039;, where A&#039;&#039;i&#039;&#039; is the average of column &#039;&#039;i&#039;&#039; and S&#039;&#039;i&#039;&#039; the corresponding standard deviation (error of the mean). By default the file is called &#039;ana.dat&#039;, but this can be changed via the [[#o-option|&amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt;]] option. Note that a second invocation of GA will not overwrite the file, but instead append another line to it.  This format is useful for plotting results in [[gnuplot]], via a command of the form &lt;br /&gt;
  plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err&lt;br /&gt;
or even&lt;br /&gt;
&lt;br /&gt;
  plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err, &amp;quot;&amp;quot; using 0:3:4, &amp;quot;&amp;quot; using 0:5:6&lt;br /&gt;
&lt;br /&gt;
which will plot the average values of three columns (and their standard deviation) as a function of the line number in &#039;ana.dat&#039;, where each line number represents a different invocation of GA. Note that the standard deviations written into &#039;ana.dat&#039; are those corresponding to the first decorrelated set of samples for each column (if no decorrelated set exists, the standard error obtained for the most coarse blocking level will be used).&lt;br /&gt;
&lt;br /&gt;
=== Memory considerations ===&lt;br /&gt;
&lt;br /&gt;
By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples. If the file contains more samples, use the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option to allocate memory for an integer multiple of this limit.&lt;br /&gt;
However, after the number of columns has been determined (either specified explicitly on the command line or automatically from the first sample), the number of entries will be reduced to limit the total memory consumption to 2 GB.  If the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option is used, this limit will be increased to an integer multiple of 2 GB.&lt;br /&gt;
&lt;br /&gt;
The total memory requirements can also be reduced by analyzing a file in multiple passes, selecting a subset of the columns in each pass.  For example, for a file with 1000 columns, the first 600 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer file 600&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
and the remaining 400 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer -c 600 file 400&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
(Note that the argument &amp;lt;tt&amp;gt;400&amp;lt;/tt&amp;gt; is optional in the second invocation, but would be relevant if the file would be analyzed in more than two passes.)&lt;br /&gt;
&lt;br /&gt;
The maximum number of columns handled by GA is 2048, so for larger numbers of columns the file always must be processed in multiple passes, following the same approach.&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
* To check whether non-equilibrated data at the beginning of a file is affecting the calculated averages, run GA again on the same data file, omitting a fraction of the data via the [[#i-option|&amp;lt;tt&amp;gt;-i&amp;lt;/tt&amp;gt;]] option. If this leads to a statistically significant change in the averages, it may indicate that the first part of the file contains samples that are not equilibrated.&lt;br /&gt;
&lt;br /&gt;
* All lines (except comment lines) must contain at least the number of columns specified on the command-line, or the number of columns automatically determined from the first non-comment line.  If a line contains more columns, a warning is issued, but the analysis proceeds. On the other hand, if any line contains fewer columns than this number, the analysis is aborted.&lt;br /&gt;
&lt;br /&gt;
* Blank lines are not permitted, not even at the end of a file.&lt;br /&gt;
&lt;br /&gt;
* Although GA tries to detect corruptions in a data file, limitations in the &amp;lt;tt&amp;gt;scanf()&amp;lt;/tt&amp;gt; function make it ignore certain non-numerical input. Specifically, an entry that starts with a number followed by a spurious character is truncated.  For example, &#039;24j3&#039; is read as &#039;24&#039; (however, scientific notation is parsed correctly; i.e., &#039;5.3e2&#039; is read as &#039;530&#039;).&lt;br /&gt;
&lt;br /&gt;
* The ability to read from &amp;lt;tt&amp;gt;stdin&amp;lt;/tt&amp;gt; makes it possible to process simulation data and directly pipe the results into GA.  For example: &amp;lt;tt&amp;gt;awk unprocessed_data | ga STDIN&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Algorithm ===&lt;br /&gt;
&lt;br /&gt;
(coming soon)&lt;br /&gt;
&lt;br /&gt;
=== Download binary versions (Linux and OS X) ===&lt;br /&gt;
&lt;br /&gt;
The current version is dated 03/28/2014.  It is strongly recommend that you upgrade from any earlier version.  You can download binary versions of this program here, but note that this was created for internal lab use - we cannot provide any support.&lt;br /&gt;
&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga.zip Linux executable (recommended version; compiled on OpenSuSE 13.1, 64-bit)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_static.zip Linux executable (try if regular version does not work; static binary that should be suitable for most x86_64 Linux installations)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_osx.zip OS X executable (compiled on OS X 10.9.2)]&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=178</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=178"/>
		<updated>2014-05-20T17:52:38Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
  set term post eps [options]&lt;br /&gt;
  set output filename.eps&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
  sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;x Label&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Italic [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=177</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=177"/>
		<updated>2014-05-20T17:52:18Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Formatting labels */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
  set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
  sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
  set xlabel &amp;quot;x Label&amp;quot;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
  {/Helvetica-Italic [text]}&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
  {Symbol [text]}&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
  {Symbol-Oblique [text]}&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=176</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=176"/>
		<updated>2014-05-20T17:51:29Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Sample usage script */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
  set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
  sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set xlabel &amp;quot;x Label&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{/Helvetica-Italic [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol-Oblique [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
  set term post eps enh color {dashed|solid} lw 2&lt;br /&gt;
  set output &amp;quot;filename.eps&amp;quot;&lt;br /&gt;
  set encoding iso_8859_1&lt;br /&gt;
  set key top right&lt;br /&gt;
  set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&lt;br /&gt;
  set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&lt;br /&gt;
  set xlabel &amp;quot;{xLabel}&amp;quot;&lt;br /&gt;
  set ylabel &amp;quot;{yLabel}&amp;quot;&lt;br /&gt;
  set xrange [{xmin}:{xmax}]&lt;br /&gt;
  set yrange [{ymin}:{ymax}]&lt;br /&gt;
  plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=175</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=175"/>
		<updated>2014-05-20T17:50:12Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
  set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
  sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
  epstopdf filename.eps&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set xlabel &amp;quot;x Label&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{/Helvetica-Italic [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol-Oblique [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=174</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=174"/>
		<updated>2014-05-20T17:49:15Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* PDF terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&lt;br /&gt;
  set term pdf enh&lt;br /&gt;
&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set xlabel &amp;quot;x Label&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{/Helvetica-Italic [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol-Oblique [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=155</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=155"/>
		<updated>2014-05-17T20:17:15Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page]. To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set xlabel &amp;quot;x Label&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{/Helvetica-Italic [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol-Oblique [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=154</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=154"/>
		<updated>2014-05-17T20:16:54Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Using symbols in labels */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Formatting labels ===&lt;br /&gt;
&lt;br /&gt;
When choosing for instance an axis label via&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set xlabel &amp;quot;x Label&amp;quot;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
it is straightforward to use simple text, however often special formatting is necessary. A brief set of rules follows. For italic script place&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{/Helvetica-Italic [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
inside the quotes, where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is what you wish to have in italics. All variables should be in italics. For greek letters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;code&amp;gt;[text]&amp;lt;/code&amp;gt; is any character off of the list linked [http://mathewpeet.org/lists/symbols/ here]. For italic Greek characters use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;{Symbol-Oblique [text]}&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
More instructions are available [http://www.gnuplotting.org/manpage-gnuplot-4-6/#Q1-1-42 here].&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=153</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=153"/>
		<updated>2014-05-17T20:03:10Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term post eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Using symbols in labels ===&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=152</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=152"/>
		<updated>2014-05-17T20:02:36Z</updated>

		<summary type="html">&lt;p&gt;Bernie: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Using symbols in labels ===&lt;br /&gt;
&lt;br /&gt;
=== Sample usage script===&lt;br /&gt;
&lt;br /&gt;
The following is a sample gnuplot script. Everything in braces should be replaced. Again, see the [http://www.gnuplot.info/ gnuplot homepage] or appropriate [http://www.gnuplotting.org/ tutorial] for more comprehensive usage.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
set term post eps enh color {dashed|solid} lw 2&amp;lt;br /&amp;gt;&lt;br /&gt;
set output &amp;quot;filename.eps&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set encoding iso_8859_1 &amp;lt;br /&amp;gt;&lt;br /&gt;
set key top right &amp;lt;br /&amp;gt;&lt;br /&gt;
set format x &amp;quot;%3.2f&amp;quot; #format tics to have max 3 digits and&amp;lt;br /&amp;gt;&lt;br /&gt;
set format y &amp;quot;%3.2f&amp;quot; #max 2 digits after the decimal&amp;lt;br /&amp;gt;&lt;br /&gt;
set xlabel &amp;quot;{xLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set ylabel &amp;quot;{yLabel}&amp;quot; &amp;lt;br /&amp;gt;&lt;br /&gt;
set xrange [{xmin}:{xmax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
set yrange [{ymin}:{ymax}] &amp;lt;br /&amp;gt;&lt;br /&gt;
plot &amp;quot;datafile.dat&amp;quot; using 1:2:3 with errorbars&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=151</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=151"/>
		<updated>2014-05-17T19:41:57Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Using symbols in labels ===&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=150</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=150"/>
		<updated>2014-05-17T19:41:29Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Encapsulated PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use [http://www.grymoire.com/unix/sed.html sed]. For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it, you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Using symbols in labels ===&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=149</id>
		<title>Gnuplot</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Gnuplot&amp;diff=149"/>
		<updated>2014-05-17T19:40:26Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Enhanced PostScript terminal */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
Gnuplot is a program for plotting scientific data.  The resulting figures can be of very high quality, provided that attention is paid to detail.  Impressive examples can be found on the [http://www.gnuplot.info/ gnuplot homepage]. This page does not provide a detailed manual for gnuplot, but instead focuses on specific aspects typically accounted in the CSML when creating figures for manuscripts.&lt;br /&gt;
&lt;br /&gt;
=== PDF terminal ===&lt;br /&gt;
&lt;br /&gt;
The version of gnuplot installed on all [[hardware|local machines]] has been compiled with [http://www.pdflib.com/ PDFlib], which makes it possible to directly produce PDF images.  Such figures offer the important advantage that they are fully scalable and yet have a small file size. Choose this terminal via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;set term pdf enh&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
Sometimes, fine-tuning of the resulting PDF figure is most conveniently done in Adobe Illustrator: each component of the figure will appear as an object that you can move, resize, etc.&lt;br /&gt;
&lt;br /&gt;
=== Encapsulated PostScript terminal ===&lt;br /&gt;
&lt;br /&gt;
Often when the output of a gnupot script requires further formatting it is easiest to do so using the [http://en.wikipedia.org/wiki/Encapsulated_PostScript Encapsulated PostScript] (EPS) terminal. This is essentially the same as the PostScript terminal except that it contains some extra lines that allow it to interface with other programs. Invoke the EPS terminal as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;set term eps [options]&amp;lt;br /&amp;gt;set output filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For possible options see the instructions for the PostScript terminal on [http://www.gnuplotting.org/output-terminals/ this page].&lt;br /&gt;
&lt;br /&gt;
To edit the resulting .eps file it is convenient to use sed (tutorial [http://www.grymoire.com/unix/sed.html here]). For example to change all instances of 0.0 to 0 one would use&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;sed -i &#039;s/(0.0)/(0)/g&#039; filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once you have your eps file exactly as you like it, you can convert it to PDF format using epstopdf. Executing the command&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;epstopdf filename.eps&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
will create the PDF file &amp;lt;code&amp;gt;filename.pdf&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Using symbols in labels ===&lt;br /&gt;
&lt;br /&gt;
=== General usage tips ===&lt;br /&gt;
&lt;br /&gt;
* Journals typically prefer Helvetica as the typeface for figures.&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=121</id>
		<title>Generic Analyzer</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=121"/>
		<updated>2014-05-16T18:50:06Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Special usage notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;generic analyzer&amp;quot; (GA) is a program available on all [[hardware|local machines]], allowing rapid statistical analysis of typical simulation data. It is particularly useful for processing output from Monte Carlo and molecular dynamics simulations.&lt;br /&gt;
&lt;br /&gt;
Data files are expected to be arranged in columns, and the GA will provide the average of each column, along with its standard deviation and correlation coefficient.  As a rule of thumb, if the correlation coefficient is above 0.1, the data are considered correlated and the standard deviation is underestimated.  This is typical for simulation data when sampling takes place more often than the autocorrelation time.  To address this, GA will group the data in blocks and make another pass.  The number of data points is now decreased, generally reducing the correlation coefficient.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
  generic_analyzer [options] &#039;&#039;filename&#039;&#039; [columns]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; is a plain text file. Lines starting with a &#039;#&#039; will be ignored (use this feature to insert column descriptions and other information into your simulation data).  If &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; ends with &#039;&amp;lt;tt&amp;gt;.gz&amp;lt;/tt&amp;gt;&#039; the file is assumed to be compressed with [[http://en.wikipedia.org/wiki/Gzip gzip]] and will be decompressed by GA on the fly.  Note that this happens in memory; no decompressed version of the file is written to disk.  This has the advantage that no additional disk space is required and that no additional time is required to compress the data again after the analysis.&lt;br /&gt;
&lt;br /&gt;
If the number of &amp;lt;tt&amp;gt;columns&amp;lt;/tt&amp;gt; is not provided, GA will determine it from the first non-comment line in the file.  Otherwise, only the number of columns indicated will be analyzed.  Also note the [[#c-option|&amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;]] option below.&lt;br /&gt;
&lt;br /&gt;
==== Options ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;a-option&amp;quot;&amp;gt;-a&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples (but note that this number is reduced for files that contain large numbers of columns, see [[#Memory considerations|Memory considerations]] below). This option multiplies the maximum number of entries by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;c-option&amp;quot;&amp;gt;-c&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;Ignore the first &#039;&#039;n&#039;&#039; columns on each line. If the number of columns is specified explicitly on the command-line, these columns are counted &#039;&#039;after&#039;&#039; the ignored columns.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;i-option&amp;quot;&amp;gt;-i&amp;lt;/tt&amp;gt; &#039;&#039;m&#039;&#039;&amp;lt;br&amp;gt;Discard the first &#039;&#039;m&#039;&#039; samples. Note that comment lines are not counted as samples. This option is normally employed to exclude simulation data taken when a system is not equilibrated yet.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;o-option&amp;quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Redirect the data normally written to [[#ana.dat|ana.dat]] (see below) to &#039;&#039;filename&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Interpreting GA output ===&lt;br /&gt;
&lt;br /&gt;
When reading the output for a given column, start at the top, and go down until you have reached the first estimate for which the correlation coefficient is less than 0.1.  This line provides the proper estimate of the standard deviation.  To help you quickly locate this line, it is marked by a &#039;&amp;lt;&#039; at the end.  Note that the correlation time can be different for different columns.  The summary printed at the end of the output provide the average of each column along with the correct standard deviation and the number of independent samples.  If the data in a certain column are not decorrelated even at the most coarse blocking level, a warning is issued.&lt;br /&gt;
&lt;br /&gt;
The screen output of GA can be redirected to a file, but it must be noted that all output is written to &amp;lt;tt&amp;gt;stderr&amp;lt;/tt&amp;gt;.  When using the [[http://en.wikipedia.org/wiki/Bash_(Unix_shell) bash shell]], redirection is achieved via &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;generic_analyzer file 2&amp;gt; redirected_output&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;ana.dat&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
GA also writes a compact version of the analysis results to a file. For &#039;&#039;n&#039;&#039; columns, this file contains a single line of the format &#039;A1 S1 A2 S2 ... A&#039;&#039;n&#039;&#039; S&#039;&#039;n&#039;&#039;&#039;, where A&#039;&#039;i&#039;&#039; is the average of column &#039;&#039;i&#039;&#039; and S&#039;&#039;i&#039;&#039; the corresponding standard deviation (error of the mean). By default the file is called &#039;ana.dat&#039;, but this can be changed via the [[#o-option|&amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt;]] option. Note that a second invocation of GA will not overwrite the file, but instead append another line to it.  This format is useful for plotting results in [[gnuplot]], via a command of the form &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt; or even &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err, &amp;quot;&amp;quot; using 0:3:4, &amp;quot;&amp;quot; using 0:5:6&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt; which will plot the average values of three columns (and their standard deviation) as a function of the line number in &#039;ana.dat&#039;, where each line number represents a different invocation of GA. Note that the standard deviations written into &#039;ana.dat&#039; are those corresponding to the first decorrelated set of samples for each column (if no decorrelated set exists, the standard error obtained for the most coarse blocking level will be used).&lt;br /&gt;
&lt;br /&gt;
=== Memory considerations ===&lt;br /&gt;
&lt;br /&gt;
By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples. If the file contains more samples, use the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option to allocate memory for an integer multiple of this limit.&lt;br /&gt;
However, after the number of columns has been determined (either specified explicitly on the command line or automatically from the first sample), the number of entries will be reduced to limit the total memory consumption to 2 GB.  If the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option is used, this limit will be increased to an integer multiple of 2 GB.&lt;br /&gt;
&lt;br /&gt;
The total memory requirements can also be reduced by analyzing a file in multiple passes, selecting a subset of the columns in each pass.  For example, for a file with 1000 columns, the first 600 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer file 600&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
and the remaining 400 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer -c 600 file 400&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
(Note that the argument &amp;lt;tt&amp;gt;400&amp;lt;/tt&amp;gt; is optional in the second invocation, but would be relevant if the file would be analyzed in more than two passes.)&lt;br /&gt;
&lt;br /&gt;
The maximum number of columns handled by GA is 2048, so for larger numbers of columns the file always must be processed in multiple passes, following the same approach.&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
* To check whether non-equilibrated data at the beginning of a file is affecting the calculated averages, run GA again on the same data file, omitting a fraction of the data via the [[#i-option|&amp;lt;tt&amp;gt;-i&amp;lt;/tt&amp;gt;]] option. If this leads to a statistically significant change in the averages, it may indicate that the first part of the file contains samples that are not equilibrated.&lt;br /&gt;
&lt;br /&gt;
* All lines (except comment lines) must contain at least the number of columns specified on the command-line, or the number of columns automatically determined from the first non-comment line.  If a line contains more columns, a warning is issued, but the analysis proceeds. On the other hand, if any line contains fewer columns than this number, the analysis is aborted.&lt;br /&gt;
&lt;br /&gt;
* Blank lines are not permitted, not even at the end of a file.&lt;br /&gt;
&lt;br /&gt;
* Although GA tries to detect corruptions in a data file, limitations in the &amp;lt;tt&amp;gt;scanf()&amp;lt;/tt&amp;gt; function make it ignore certain non-numerical input. Specifically, an entry that starts with a number followed by a spurious character is truncated.  For example, &#039;24j3&#039; is read as &#039;24&#039; (scientific notation however is read correctly, that is 5.3e2 is read as 530).&lt;br /&gt;
&lt;br /&gt;
=== Algorithm ===&lt;br /&gt;
&lt;br /&gt;
(coming soon)&lt;br /&gt;
&lt;br /&gt;
=== Download binary versions (Linux and OS X) ===&lt;br /&gt;
&lt;br /&gt;
The current version is dated 03/28/2014.  It is strongly recommend that you upgrade from any earlier version.  You can download binary versions of this program here, but note that this was created for internal lab use - we cannot provide any support.&lt;br /&gt;
&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga.zip Linux executable (recommended version; compiled on OpenSuSE 13.1, 64-bit)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_static.zip Linux executable (try if regular version does not work; static binary that should be suitable for most x86_64 Linux installations)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_osx.zip OS X executable (compiled on OS X 10.9.2)]&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
	<entry>
		<id>https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=120</id>
		<title>Generic Analyzer</title>
		<link rel="alternate" type="text/html" href="https://csml-wiki.northwestern.edu/index.php?title=Generic_Analyzer&amp;diff=120"/>
		<updated>2014-05-16T18:44:04Z</updated>

		<summary type="html">&lt;p&gt;Bernie: /* Options */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Overview ===&lt;br /&gt;
&lt;br /&gt;
The &amp;quot;generic analyzer&amp;quot; (GA) is a program available on all [[hardware|local machines]], allowing rapid statistical analysis of typical simulation data. It is particularly useful for processing output from Monte Carlo and molecular dynamics simulations.&lt;br /&gt;
&lt;br /&gt;
Data files are expected to be arranged in columns, and the GA will provide the average of each column, along with its standard deviation and correlation coefficient.  As a rule of thumb, if the correlation coefficient is above 0.1, the data are considered correlated and the standard deviation is underestimated.  This is typical for simulation data when sampling takes place more often than the autocorrelation time.  To address this, GA will group the data in blocks and make another pass.  The number of data points is now decreased, generally reducing the correlation coefficient.&lt;br /&gt;
&lt;br /&gt;
=== General usage ===&lt;br /&gt;
&lt;br /&gt;
  generic_analyzer [options] &#039;&#039;filename&#039;&#039; [columns]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; is a plain text file. Lines starting with a &#039;#&#039; will be ignored (use this feature to insert column descriptions and other information into your simulation data).  If &amp;lt;tt&amp;gt;filename&amp;lt;/tt&amp;gt; ends with &#039;&amp;lt;tt&amp;gt;.gz&amp;lt;/tt&amp;gt;&#039; the file is assumed to be compressed with [[http://en.wikipedia.org/wiki/Gzip gzip]] and will be decompressed by GA on the fly.  Note that this happens in memory; no decompressed version of the file is written to disk.  This has the advantage that no additional disk space is required and that no additional time is required to compress the data again after the analysis.&lt;br /&gt;
&lt;br /&gt;
If the number of &amp;lt;tt&amp;gt;columns&amp;lt;/tt&amp;gt; is not provided, GA will determine it from the first non-comment line in the file.  Otherwise, only the number of columns indicated will be analyzed.  Also note the [[#c-option|&amp;lt;tt&amp;gt;-c&amp;lt;/tt&amp;gt;]] option below.&lt;br /&gt;
&lt;br /&gt;
==== Options ====&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;a-option&amp;quot;&amp;gt;-a&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples (but note that this number is reduced for files that contain large numbers of columns, see [[#Memory considerations|Memory considerations]] below). This option multiplies the maximum number of entries by &#039;&#039;n&#039;&#039;.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;c-option&amp;quot;&amp;gt;-c&amp;lt;/tt&amp;gt; &#039;&#039;n&#039;&#039;&amp;lt;br&amp;gt;Ignore the first &#039;&#039;n&#039;&#039; columns on each line. If the number of columns is specified explicitly on the command-line, these columns are counted &#039;&#039;after&#039;&#039; the ignored columns.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;i-option&amp;quot;&amp;gt;-i&amp;lt;/tt&amp;gt; &#039;&#039;m&#039;&#039;&amp;lt;br&amp;gt;Discard the first &#039;&#039;m&#039;&#039; samples. Note that comment lines are not counted as samples. This option is normally employed to exclude simulation data taken when a system is not equilibrated yet.&lt;br /&gt;
* &amp;lt;tt id=&amp;quot;o-option&amp;quot;&amp;gt;-o&amp;lt;/tt&amp;gt; &#039;&#039;filename&#039;&#039;&amp;lt;br&amp;gt;Redirect the data normally written to [[#ana.dat|ana.dat]] (see below) to &#039;&#039;filename&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Interpreting GA output ===&lt;br /&gt;
&lt;br /&gt;
When reading the output for a given column, start at the top, and go down until you have reached the first estimate for which the correlation coefficient is less than 0.1.  This line provides the proper estimate of the standard deviation.  To help you quickly locate this line, it is marked by a &#039;&amp;lt;&#039; at the end.  Note that the correlation time can be different for different columns.  The summary printed at the end of the output provide the average of each column along with the correct standard deviation and the number of independent samples.  If the data in a certain column are not decorrelated even at the most coarse blocking level, a warning is issued.&lt;br /&gt;
&lt;br /&gt;
The screen output of GA can be redirected to a file, but it must be noted that all output is written to &amp;lt;tt&amp;gt;stderr&amp;lt;/tt&amp;gt;.  When using the [[http://en.wikipedia.org/wiki/Bash_(Unix_shell) bash shell]], redirection is achieved via &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;generic_analyzer file 2&amp;gt; redirected_output&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;span id=&amp;quot;ana.dat&amp;quot;&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;
GA also writes a compact version of the analysis results to a file. For &#039;&#039;n&#039;&#039; columns, this file contains a single line of the format &#039;A1 S1 A2 S2 ... A&#039;&#039;n&#039;&#039; S&#039;&#039;n&#039;&#039;&#039;, where A&#039;&#039;i&#039;&#039; is the average of column &#039;&#039;i&#039;&#039; and S&#039;&#039;i&#039;&#039; the corresponding standard deviation (error of the mean). By default the file is called &#039;ana.dat&#039;, but this can be changed via the [[#o-option|&amp;lt;tt&amp;gt;-o&amp;lt;/tt&amp;gt;]] option. Note that a second invocation of GA will not overwrite the file, but instead append another line to it.  This format is useful for plotting results in [[gnuplot]], via a command of the form &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt; or even &amp;lt;blockquote&amp;gt;&amp;lt;tt&amp;gt;plot &amp;quot;ana.dat&amp;quot; using 0:1:2 with err, &amp;quot;&amp;quot; using 0:3:4, &amp;quot;&amp;quot; using 0:5:6&amp;lt;/tt&amp;gt;&amp;lt;/blockquote&amp;gt; which will plot the average values of three columns (and their standard deviation) as a function of the line number in &#039;ana.dat&#039;, where each line number represents a different invocation of GA. Note that the standard deviations written into &#039;ana.dat&#039; are those corresponding to the first decorrelated set of samples for each column (if no decorrelated set exists, the standard error obtained for the most coarse blocking level will be used).&lt;br /&gt;
&lt;br /&gt;
=== Memory considerations ===&lt;br /&gt;
&lt;br /&gt;
By default, GA allows up to 10&amp;lt;sup&amp;gt;7&amp;lt;/sup&amp;gt; samples. If the file contains more samples, use the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option to allocate memory for an integer multiple of this limit.&lt;br /&gt;
However, after the number of columns has been determined (either specified explicitly on the command line or automatically from the first sample), the number of entries will be reduced to limit the total memory consumption to 2 GB.  If the [[#a-option|&amp;lt;tt&amp;gt;-a&amp;lt;/tt&amp;gt;]] option is used, this limit will be increased to an integer multiple of 2 GB.&lt;br /&gt;
&lt;br /&gt;
The total memory requirements can also be reduced by analyzing a file in multiple passes, selecting a subset of the columns in each pass.  For example, for a file with 1000 columns, the first 600 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer file 600&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
and the remaining 400 columns can be analyzed via&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
&amp;lt;tt&amp;gt;generic_analyzer -c 600 file 400&amp;lt;/tt&amp;gt;&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
(Note that the argument &amp;lt;tt&amp;gt;400&amp;lt;/tt&amp;gt; is optional in the second invocation, but would be relevant if the file would be analyzed in more than two passes.)&lt;br /&gt;
&lt;br /&gt;
The maximum number of columns handled by GA is 2048, so for larger numbers of columns the file always must be processed in multiple passes, following the same approach.&lt;br /&gt;
&lt;br /&gt;
=== Special usage notes ===&lt;br /&gt;
&lt;br /&gt;
* To check whether non-equilibrated data at the beginning of a file is affecting the calculated averages, run GA again on the same data file, omitting a fraction of the data via the [[#i-option|&amp;lt;tt&amp;gt;-i&amp;lt;/tt&amp;gt;]] option. If this leads to a statistically significant change in the averages, it may indicate that the first part of the file contains samples that are not equilibrated.&lt;br /&gt;
&lt;br /&gt;
* All lines (except comment lines) must contain at least the number of columns specified on the command-line, or the number of columns automatically determined from the first non-comment line.  If a line contains more columns, a warning is issued, but the analysis proceeds. On the other hand, if any line contains fewer columns than this number, the analysis is aborted.&lt;br /&gt;
&lt;br /&gt;
* Blank lines are not permitted, not even at the end of a file.&lt;br /&gt;
&lt;br /&gt;
* Although GA tries to detect corruptions in a data file, limitations in the &amp;lt;tt&amp;gt;scanf()&amp;lt;/tt&amp;gt; function make it ignore certain non-numerical input. Specifically, an entry that starts with a number followed by a spurious character is truncated.  For example, &#039;24j3&#039; is read as &#039;24&#039;.&lt;br /&gt;
&lt;br /&gt;
=== Algorithm ===&lt;br /&gt;
&lt;br /&gt;
(coming soon)&lt;br /&gt;
&lt;br /&gt;
=== Download binary versions (Linux and OS X) ===&lt;br /&gt;
&lt;br /&gt;
The current version is dated 03/28/2014.  It is strongly recommend that you upgrade from any earlier version.  You can download binary versions of this program here, but note that this was created for internal lab use - we cannot provide any support.&lt;br /&gt;
&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga.zip Linux executable (recommended version; compiled on OpenSuSE 13.1, 64-bit)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_static.zip Linux executable (try if regular version does not work; static binary that should be suitable for most x86_64 Linux installations)]&lt;br /&gt;
* [http://ariadne.ms.northwestern.edu/Download/Generic_analyzer/ga_osx.zip OS X executable (compiled on OS X 10.9.2)]&lt;/div&gt;</summary>
		<author><name>Bernie</name></author>
	</entry>
</feed>