POINTS_01_PLOT
Plot Points in the Unit Square
POINTS_01_PLOT
is a MATLAB program which
can read an ASCII
file defining a set of points in the unit square [0,1] by [0,1].
The program can also automatically save the image in a file. Either EPS
(Encapsulated PostScript) or PNG can be used.
Usage:
-
points_01_plot ( 'file_name' )
-
plots the points in the [0,1] square
from the file 'file_name'.
-
points_01_eps ( 'file_name' )
-
plots the points in the [0,1] square
from the file 'file_name' and
saves an EPS file;
-
points_01_png ( 'file_name' )
-
plots the points in the [0,1] square
from the file 'file_name' and
saves an PNG file;
-
points_11_png ( 'file_name' )
-
plots the points in the [-1,1] square
from the file 'file_name' and
saves an PNG file;
Related Data and Programs:
EPS,
a data directory which
contains examples of the Encapsulated PostScript (EPS) format.
NESTED_SEQUENCE_DISPLAY,
a MATLAB program which
reads a set of sequences, plots them
as horizontal lines of data, and connects sequence entries that
are equal.
PLOT_POINTS,
a FORTRAN90 program which
can read
a file of point coordinates and make a PostScript image of them.
XY,
a data directory which
contains some examples of 2D pointsets.
XY_DISPLAY,
a MATLAB program which
reads a set of 2D points from
a file and plots them in a the MATLAB graphics window.
XY_DISPLAY_OPENGL,
a C++ program which
reads a set of 2D points from
a file and plots them in an OpenGL graphics window.
XYZ_DISPLAY,
a MATLAB program which
reads a set of 3D points from
a file and plots them in a the MATLAB graphics window.
XYZ_DISPLAY_OPENGL,
a C++ program which
reads a set of 3D points from
a file and plots them in an OpenGL graphics window.
Source Code:
-
file_name_ext_swap.m,
creates a new file name by changing the extension.
-
points_01_plot.m,
reads a data file in the [0,1] square, and displays it.
-
points_01_eps.m,
reads a data file in the [0,1] square,
displays it, and creates an EPS plot.
-
points_01_png.m,
reads a data file in the [0,1] square,
displays it, and creates a PNG plot.
-
points_11_png.m,
reads a data file of points in the [-1,1] square,
displays it, and creates a PNG plot.
-
s_len_trim.m,
returns the length of a string to the last nonblank.
-
timestamp.m,
prints the current YMDHMS date as a timestamp.
Examples and Tests:
-
fred.txt,
a sample input file, containing 100 points in the unit square.
-
fred.eps,
the Encapsulated PostScript image of the points.
-
fred.png,
the PNG image of the points.
You can go up one level to
the MATLAB source codes.
Last revised on 17 November 2006.