Sophie

Sophie

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

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

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html6073"
  HREF="node341.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html6067"
  HREF="node336.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html6063"
  HREF="node339.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html6069"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html6071"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html6074"
  HREF="node341.html">Grid data</A>
<B> Up:</B> <A NAME="tex2html6068"
  HREF="node336.html">Data-file</A>
<B> Previous:</B> <A NAME="tex2html6064"
  HREF="node339.html">Matrix_ascii</A>
 &nbsp; <B>  <A NAME="tex2html6070"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html6072"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H3><A NAME="SECTION040261400000000000000"></A>
<A NAME="commands_plot_datafile_matrix"></A><A NAME="commands_splot_datafile_matrix"></A><A NAME="plot_datafile_matrix"></A><A NAME="splot_datafile_matrix"></A><A NAME="plot_matrix"></A><A NAME="splot_matrix"></A><A NAME="data-file_matrix"></A><A NAME="datafile_matrix"></A><A NAME="matrix"></A><A NAME="7787"></A>
<BR>
Matrix
</H3>
Datafile can be in an ascii or binary matrix format. The <B>matrix</B> flag
indicates that the file is ascii, the <B>binary</B> or <B>matrix binary</B> stands for
a binary format. For details, see <B>matrix ascii (p.&nbsp;<A HREF="node339.html#matrix_ascii"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7792"></A></B> and <B>matrix binary (p.&nbsp;<A HREF="node337.html#matrix_binary"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="7794"></A></B>.

<P>
Basic usage in <B>splot</B>:
<BR>
<PRE>
   splot 'a.dat' matrix
   splot 'a.gpbin' {matrix} binary
</PRE>
<BR>
Advanced usage in <B>splot</B>:
<BR>
<PRE>
   splot 'a.dat' matrix using 1:2:3
   splot 'a.gpbin' {matrix} binary using 1:2:3
</PRE>
<BR>
allows to transform the axes coordinates and the z-data independently.

<P>
Usage in <B>plot</B>:
<BR>
<PRE>
   plot `a.dat` matrix
   plot `a.dat` matrix using 1:3
   plot 'a.gpbin' {matrix} binary using 1:3
</PRE>
<BR>
will plot rows of the matrix, while using 2:3 will plot matrix columns, and
using 1:2 the point coordinates (rather useless). Applying the <B>every</B> option
you can specify explicit rows and columns.

<P>
Example - rescale axes of a matrix in an ascii file:
<BR>
<PRE>
   splot `a.dat` matrix using (1+$1):(1+$2*10):3
</PRE>
<BR>

<P>
Example - plot the 3rd row of a matrix in an ascii file:
<BR>
<PRE>
   plot 'a.dat' matrix using 1:3 every 1:999:1:2
</PRE>
<BR>
(rows are enumerated from 0, thus 2 instead of 3).
<BR><HR>
<ADDRESS>

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