Sophie

Sophie

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

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>Matrix_ascii</TITLE>
<META NAME="description" CONTENT="Matrix_ascii">
<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="node340.html">
<LINK REL="previous" HREF="node338.html">
<LINK REL="up" HREF="node336.html">
<LINK REL="next" HREF="node340.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html6061"
  HREF="node340.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6055"
  HREF="node336.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6049"
  HREF="node338.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6057"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6059"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6062"
  HREF="node340.html">Matrix</A>
<B> Up:</B> <A NAME="tex2html6056"
  HREF="node336.html">Data-file</A>
<B> Previous:</B> <A NAME="tex2html6050"
  HREF="node338.html">Example datafile</A>
 &nbsp; <B>  <A NAME="tex2html6058"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6060"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H3><A NAME="SECTION040261300000000000000"></A>
<A NAME="commands_plot_datafile_matrix_ascii"></A><A NAME="commands_splot_datafile_matrix_ascii"></A><A NAME="plot_datafile_matrix_ascii"></A><A NAME="splot_datafile_matrix_ascii"></A><A NAME="plot_matrix_ascii"></A><A NAME="splot_matrix_ascii"></A><A NAME="data-file_matrix_ascii"></A><A NAME="datafile_matrix_ascii"></A><A NAME="matrix_ascii"></A>
<BR>
Matrix_ascii
</H3>
The <B>matrix</B> keyword (without a sequent <B>binary</B> keyword) in
<BR>
<PRE>
   {s}plot 'a.dat' matrix
</PRE>
<BR>
indicates that data are stored in an ascii numbers matrix format.

<P>
The z-values are read in a row at a time, i. e.,
<BR>
<PRE>
   z11 z12 z13 z14 ...
   z21 z22 z23 z24 ...
   z31 z32 z33 z34 ...
</PRE>
<BR>
and so forth.

<P>
In 3D, the x- and y-indices of the matrix surface plot correspond to column
and row indices of the matrix, respectively, being enumerated from 0. You can
rescale or transform the axes as usual for a data file with three columns
by means of x=$1, y=$2, z=$3. For example
<BR>
<PRE>
   splot 'a.dat' matrix using (1+$1/100):(1+$2*10):3
</PRE>
<BR>

<P>
A blank line or comment line ends the matrix, and starts a new surface mesh.
You can select among the meshes inside a file by the <B>index</B> option to the
<B>splot</B> command, as usual.

<P>
See <B>matrix (p.&nbsp;<A HREF="node340.html#matrix"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7776"></A></B> for examples of plotting rows and columns of the matrix in
a 2D plot.
<BR><HR>
<ADDRESS>

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