pwc_plot_2d, a MATLAB code 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 code which displays a box plot, over integer pairs of data, of a function defined by two formulas.

box_plot, a MATLAB code which displays a box plot of data that consists of pairs of integers;

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

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

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

grid_display, a MATLAB code 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 code 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 code which converts the definition of a piecewise constant function of a 1D argument into plottable data.


Source Code:

Last revised on 07 April 2019.