Display a Nested Set of Sequences

NESTED_SEQUENCE_DISPLAY, a MATLAB program which displays a set of sequences, as lines of X values, "stacked up" in the Y direction. For cases where sequences share a value, a red vertical line is drawn to highlight this.

The purpose of the plot is to emphasize the structure of a nested sequence, although it is not actually necessary for the sequences to be related in any way.

The kind of plot we are thinking of though, might look something like this:

    Sequence 4: 1    3 4  5  6     8
                |    |    |        |
    Sequence 3: 1 2  |    5     7  |
                |    |          |  |
    Sequence 2: 1    3          7  |
                |               |  |
    Sequence 1: 1               7  8

For example, the program could be used to show the nesting of the family of Clenshaw Curtis points, when choosing orders 1, 3, 5, 9, 17, 33, 65, ...


nested_sequence_display ( list_file )


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


NESTED_SEQUENCE_DISPLAY 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.

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.

GL_DISPLAY, a MATLAB program which displays the points used in a 2D Gauss-Legendre quadrature rule;

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;

GRIDS_DISPLAY, a MATLAB program which reads two files of grids or sparse grids, displays the first with hollow blue dots, the second with red dots.

GRIDLINES, a MATLAB library which gives the user more control over drawing gridlines on a graph than the builtin "grid on" command.


SEQUENCE_STREAK_DISPLAY, a MATLAB program which reads a file containing a sequence, and draws a "streak" plot in which, as each value joins the sequence, it starts a streak on the plot.

TENSOR_GRID_DISPLAY, a MATLAB program which can display the grid points of a tensor product rule used for interpolation or quadrature, in 1D, 2D or 3D.

Source Code:

Last revised on 22 February 2019.