pwc_plot_2d, a MATLAB library which plots piecewise constant data of a 2D argument.

We assume the user has a rectangular grid of cells in the X and Y dimensions, and a Z value assigned to each cell. This library can make a graphic representation of the piecewise constant Z function using flat patches, or 3d bars.


The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.


pwc_plot_2d is available in a Matlab version.

Related Data and Programs:

BOX_DISPLAY, a MATLAB program which displays a box plot, over integer pairs of data, of a function defined by two formulas.

BOX_PLOT, a MATLAB program which displays a box plot of data that consists of pairs of integers;

CC_DISPLAY, a MATLAB program which displays the points used in a 2D Clenshaw-Curtis quadrature rule;

CIRCLE_GRID_DISPLAY, a MATLAB program which reads a matrix of integers, and draws a corresponding grid of circles filled with color.

GRF_DISPLAY, a MATLAB program which reads a GRF file defining a mathematical graph and displays it in the MATLAB graphics window.

GRID_DISPLAY, a MATLAB program which reads a file of points on a grid or sparse grid, displays the grid and saves the image in a Portable Network Graphics (PNG) file;

HISTOGRAM_DISPLAY, a MATLAB program which makes a bar plot of a set of data stored as columns in a file; the first column is the X values, and all the other columns are Y values to be shown as a stack of bars;

pwc_plot_1d, a MATLAB library which converts the definition of a piecewise constant function of a 1D argument into plottable data.


Source Code:

Last revised on 07 April 2019.