Downloading DATAPLOT for Unix Hosts
Dataplot is a command driven program. You can optionally
run Dataplot using a graphical user interface (GUI) that is
implemented using the Tcl/Tk scripting language. Reference
will be made below to the "command line" version and the
Due to the large number of Linux/Unix installations (and the various versions of these operating systems), we no longer provide pre-built executables. However, Dataplot should be straightforward to build on the various Linux/Unix platforms. I routinely build Dataplot using the Cent OS, Fedora, and Cygwin operating systems. I plan to add Ubuntu, and possibly Free BSD, to this list. The Mac OS X version is described separately.
You do need to have the gfortran and gcc compilers installed in order to build Dataplot from the source files.
The download involves the following components:
Problems with Downloading
If you have problems with the download, contact
Post Downloading Instructions
Location for Executable and Auxillary Files
The source page contains instructions for building Dataplot.
Once you have built the Dataplot executable, you can move
it to any convenient location. Typically, you would move it
to "/usr/local/bin". If you do not have super user permissions,
a common choice is to move it to "~/bin" where "~/" is your
home directory. However, you are not restricted to these
locations. For sake of discussion below, we assume the executable
file is in /usr/local/bin (just replace /usr/local/bin with the
appropriate location for your system).
The auxillary files page gives instructions for downloading and
unpacking the Dataplot auxillary files. Typically, you would move
these files to "/usr/local/lib/dataplot" or "~/lib/dataplot" if
you do not have super user permissions. However, you are not
restricted to these locations. For sake of discussion below, we
assume the these files are in /usr/local/lib/dataplot (just replace
Tcl/Tk is likely to be installed on most Unix/Linux systems. However, if it is not and you would like to use the GUI version, you need to download and install it. Since most variants of Linux will have some type of package management installation for Tcl/Tk, we will not discuss this further here. If you need assistance with this, contact firstname.lastname@example.org.
Environment Variable for Dataplot Auxillary Files
The default location for the Dataplot auxillary files is
/usr/local/lib/dataplot. If you installed these files in a
different directory, add the following line to your .cshrc
file if you are using the c-shell or t-shell
setenv DATAPLOT_FILES <directory_name>
with <directory_name> denoting the name of the directory where the auxillary files are located. For example,
setenv DATAPLOT_FILES /home/heckert/lib/dataplot/
For the Bourne shell, add the following line to your .bashrc file
This step is not needed if you use
The /usr/local/lib/dataplot directory will contain a number of sub-directories. The "frmenus" and "frscript" sub-directories are used by GUI version only. The remaining files and sub-directories are common to both the command line version and the GUI version.
Testing Dataplot Installation: Command Line Version
You can test the installation of the command line version of
Dataplot by entering the following commands.
device 1 x11
Be sure that the directory containing the Dataplot executable is in your path. For example, if you have the executable in /home/heckert/bin, you can add the following line to your .cshrc file (if you use the c-shell)
Testing the Dataplot GUI
When you unpacked the Dataplot auxillary files, the following
two directories should have been created:
It is assumed that Tcl/Tk is already installed on your system. Typically, Tcl/Tk will be installed in either /usr/bin or /usr/local/bin. If you are not sure where it is installed, you can enter the command
Dataplot uses the following environment variables to identify the location of the Dataplot menu files and script files respectively:
setenv XDP_CODE /usr/local/lib/dataplot/frsript
Tcl/Tk requires the following environment variables to be set:
setenv TK_LIBRARY <pathname>/lib/tk
For convenience, the script file xdataplot (this should be copied to the same directory as the Dataplot executable file) is provided. This script defines the above environment variables and then calls /usr/local/lib/dataplot/frscript/xdp (which is the main script for the Dataplot GUI).
You should manually edit the xdataplot file to make sure that the enviornment variables are set correctly for your system. The following is a typical setup for this file:
#!/bin/csh -f # # Script to run DATAPLOT graphical user interface. # # This script should be modified to indicate the location # of certain executables, libraries, directories on your # local system. # # The following 2 environment variables should specify # where the Tcl/Tk version 8 libraries reside on your # system. setenv TCL_LIBRARY /usr/local/lib/tcl8.3 setenv TK_LIBRARY /usr/local/lib/tk8.3 # # The following environment variable specifies where # the menu files reside. setenv XDP_FILE /usr/local/lib/dataplot/frmenus # # The following environment variable specifies where # the menu files reside. setenv XDP_CODE /usr/local/lib/dataplot/frscript # # Following line may be required for some Sun platforms # unsetenv LD_LIBRARY_PATH # # execute front-end script /usr/local/lib/dataplot/frscript/xdp $argvSet the environment variables in this file to match the location of the directories on your system.
The first line of the file /usr/local/lib/dataplot/frscript/xdp is something like
In order to run the front-end, enter the following command:
The fscript directory contains the file
If you have problems with the installation, contact