next up previous contents index
Next: Every Up: Binary general Previous: Perpendicular   Contents   Index


Binary examples

Examples:


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


     # The data file header contains all details necessary for creating
     # coordinates from an EDF file.
     plot '<file_name>' binary filetype=edf with image
     plot '<file_name>.edf' binary filetype=auto with image


     # 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 '<file_name>' binary array=512x1024:1024x512 format='%uchar' \
          dx=2:1 dy=1:2 origin=(0,0):(1024,1024) flipy u 1:2:3 w rgbimage


     # 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 '<file_name>' binary record=30:30:29:26 endian=swap u 1:2:3

See also binary matrix (p. [*]).


Ethan Merritt 2007-03-03