Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > 591c941c2fdf0a32dc57bb5f10791cde > files > 460

gnuplot-doc-4.4.0-5.fc14.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">

<!--Converted with LaTeX2HTML 2008 (1.71)
original version by:  Nikos Drakos, CBLU, University of Leeds
* revised and updated by:  Marcus Hennecke, Ross Moore, Herb Swan
* with significant contributions from:
  Jens Lippmann, Marek Rouchal, Martin Wilck and others -->
<HTML>
<HEAD>
<TITLE>Example datafile</TITLE>
<META NAME="description" CONTENT="Example datafile">
<META NAME="keywords" CONTENT="gnuplot">
<META NAME="resource-type" CONTENT="document">
<META NAME="distribution" CONTENT="global">

<META NAME="Generator" CONTENT="LaTeX2HTML v2008">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">

<LINK REL="STYLESHEET" HREF="gnuplot.css">

<LINK REL="next" HREF="node339.html">
<LINK REL="previous" HREF="node337.html">
<LINK REL="up" HREF="node336.html">
<LINK REL="next" HREF="node339.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html6047"
  HREF="node339.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6041"
  HREF="node336.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6035"
  HREF="node337.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6043"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6045"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6048"
  HREF="node339.html">Matrix_ascii</A>
<B> Up:</B> <A NAME="tex2html6042"
  HREF="node336.html">Data-file</A>
<B> Previous:</B> <A NAME="tex2html6036"
  HREF="node337.html">Binary matrix</A>
 &nbsp; <B>  <A NAME="tex2html6044"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6046"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H3><A NAME="SECTION040261200000000000000"></A>
<A NAME="commands_splot_datafile_example"></A><A NAME="splot_datafile_example"></A><A NAME="splot_example"></A>
<BR>
Example datafile
</H3>
A simple example of plotting a 3D data file is

<P>
<BR>
<PRE>
     splot 'datafile.dat'
</PRE>
<BR>

<P>
where the file <TT>"</TT>datafile.dat<TT>"</TT> might contain:

<P>
<BR>
<PRE>
     # The valley of the Gnu.
        0 0 10
        0 1 10
        0 2 10
</PRE>
<BR>

<P>
<BR>
<PRE>
        1 0 10
        1 1 5
        1 2 10
</PRE>
<BR>

<P>
<BR>
<PRE>
        2 0 10
        2 1 1
        2 2 10
</PRE>
<BR>

<P>
<BR>
<PRE>
        3 0 10
        3 1 0
        3 2 10
</PRE>
<BR>

<P>
Note that <TT>"</TT>datafile.dat<TT>"</TT> defines a 4 by 3 grid ( 4 rows of 3 points each ).
Rows (datablocks) are separated by blank records.

<P>
Note also that the x value is held constant within each dataline.  If you
instead keep y constant, and plot with hidden-line removal enabled, you will
find that the surface is drawn 'inside-out'.

<P>
Actually for grid data it is not necessary to keep the x values constant
within a datablock, nor is it necessary to keep the same sequence of y
values.  <B>gnuplot</B> requires only that the number of points be the same for
each datablock.  However since the surface mesh, from which contours are
derived, connects sequentially corresponding points, the effect of an
irregular grid on a surface plot is unpredictable and should be examined
on a case-by-case basis.
<HR>
<!--Navigation Panel-->
<A NAME="tex2html6047"
  HREF="node339.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6041"
  HREF="node336.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6035"
  HREF="node337.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6043"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6045"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6048"
  HREF="node339.html">Matrix_ascii</A>
<B> Up:</B> <A NAME="tex2html6042"
  HREF="node336.html">Data-file</A>
<B> Previous:</B> <A NAME="tex2html6036"
  HREF="node337.html">Binary matrix</A>
 &nbsp; <B>  <A NAME="tex2html6044"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6046"
  HREF="node467.html">Index</A></B> 
<!--End of Navigation Panel-->
<ADDRESS>

2010-08-17
</ADDRESS>
</BODY>
</HTML>