Scientific Computing and Imaging Institute IEEE Institute of Electrical and Electronics Engineers

Gnuplot

From Utah Center for Neuroimage Analysis

Jump to: navigation, search

Installing and Running Gnuplot

gnuplot is a handy light weight plotting tool. See [1] for more information.

Installing Gnuplot:

I believe the best way to install this on mac os is to download the source from here: ftp://ftp.gnuplot.info/pub/gnuplot/gnuplot-4.0.0.tar.gz (However, I'm not familiar with installing sofware for the mac so there may be other resources)


I installed and ran this on a mac with the following commands:

gunzip gnuplot-4.0.0.tar.gz

tar -xvf gnuplot-4.0.0.tar

cd gnuplot-4.0.0/

./configure --prefix=/home/.. ../gnuplot (put the dir you want gnuplot installed here)

make

make install

cd /home/.. ../gnuplot/bin

gnuplot

Using Gnuplot with the ZebraViewer

To use gnuplot with the ZebraViewer follow these steps:

1) Run ZebraViewer and add points for Axons

2) Using the color bar on the right, right-click, and choose export points. This will save all the xyz points for that color to a file. Do this for all the axon paths you want to view in gnuplot.

3) start gnuplot

4) plot the points from ZebraViewer:

 gnuplot> splot "axon1.pts" with lines, "axon2.pts" with lines

Here's an example of two point files plotted in gnuplot:

Image:gnuplot_screenshot.jpg

Liz's favorite gnuplot links

[2] [3] [4] [5]

Personal tools