Sophie

Sophie

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

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>Binary examples</TITLE>
<META NAME="description" CONTENT="Binary examples">
<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="node127.html">
<LINK REL="up" HREF="node117.html">
<LINK REL="next" HREF="node137.html">
</HEAD>

<BODY >
<!--Navigation Panel-->
<A NAME="tex2html3032"
  HREF="node137.html">
<IMG WIDTH="37" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="next" SRC="next.png"></A> 
<A NAME="tex2html3026"
  HREF="node117.html">
<IMG WIDTH="26" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="up" SRC="up.png"></A> 
<A NAME="tex2html3022"
  HREF="node135.html">
<IMG WIDTH="63" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="previous" SRC="prev.png"></A> 
<A NAME="tex2html3028"
  HREF="node1.html">
<IMG WIDTH="65" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="contents" SRC="contents.png"></A> 
<A NAME="tex2html3030"
  HREF="node467.html">
<IMG WIDTH="43" HEIGHT="24" ALIGN="BOTTOM" BORDER="0" ALT="index" SRC="index.png"></A> 
<BR>
<B> Next:</B> <A NAME="tex2html3033"
  HREF="node137.html">Every</A>
<B> Up:</B> <A NAME="tex2html3027"
  HREF="node117.html">Binary general</A>
<B> Previous:</B> <A NAME="tex2html3023"
  HREF="node135.html">Perpendicular</A>
 &nbsp; <B>  <A NAME="tex2html3029"
  HREF="node1.html">Contents</A></B> 
 &nbsp; <B>  <A NAME="tex2html3031"
  HREF="node467.html">Index</A></B> 
<BR>
<BR>
<!--End of Navigation Panel-->

<H4><A NAME="SECTION040142280000000000000"></A>
<A NAME="binary_examples"></A><A NAME="2843"></A>
<A NAME="binary_examples"></A><A NAME="binary_general_examples"></A><A NAME="2846"></A>
<BR>
Binary examples
</H4>
Examples:

<P>
<BR>
<PRE>
     # Selects two float values (second one implicit) with a float value
     # discarded between them for an indefinite length of 1D data.
     plot '&lt;file_name&gt;' binary format="%float%*float" using 1:2 with lines
</PRE>
<BR>

<P>
<BR>
<PRE>
     # The data file header contains all details necessary for creating
     # coordinates from an EDF file.
     plot '&lt;file_name&gt;' binary filetype=edf with image
     plot '&lt;file_name&gt;.edf' binary filetype=auto with image
</PRE>
<BR>

<P>
<BR>
<PRE>
     # Selects three unsigned characters for components of a raw RGB image
     # and flips the y-dimension so that typical image orientation (start
     # at top left corner) translates to the Cartesian plane.  Pixel
     # spacing is given and there are two images in the file.  One of them
     # is translated via origin.
     plot '&lt;file_name&gt;' binary array=(512,1024):(1024,512) format='%uchar' \
          dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage
</PRE>
<BR>

<P>
<BR>
<PRE>
     # Four separate records in which the coordinates are part of the
     # data file.  The file was created with a endianess different from
     # the system on which gnuplot is running.
     splot '&lt;file_name&gt;' binary record=30:30:29:26 endian=swap u 1:2:3
</PRE>
<BR>

<P>
<BR>
<PRE>
     # Same input file, but this time we skip the 1st and 3rd records
     splot '&lt;file_name&gt;' binary record=30:26 skip=360:348 endian=swap u 1:2:3
</PRE>
<BR>

<P>
See also <B>binary matrix (p.&nbsp;<A HREF="node337.html#binary_matrix"><IMG  ALIGN="BOTTOM" BORDER="1" ALT="[*]" SRC="crossref.png"></A>)<A NAME="2858"></A></B>.
<BR><HR>
<ADDRESS>

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