sequence_streak_display, a MATLAB code which displays a "streak plot" of a numeric sequence.
The idea is very simple. We can think of a sequence Y as the pairs of values (I,Y(I)). We can then plot this sequence in the usual way. To make a "streak plot", however, we now extend a horizontal ray from each plotted point all the way to the right.
Such a plot can be useful for examing the van der Corput sequence, for instance, which "fills in" the unit interval in a regular way. Looking at the streak plot, you can see the gaps between values shrinking as you move to the right.
Another possible use for such plots is for sequences with one, or better yet several, accumulation points. In that case, you will see the streak lines clustering together as you proceed.
sequence_streak_display ( 'filename', 'direction' )where
The computer code and data files made available on this web page are distributed under the GNU LGPL license.
sequence_streak_display is available in a MATLAB version.
circle_grid_display, a MATLAB code which reads a matrix of integers, and draws a corresponding grid of circles filled with color.
collatz, a MATLAB code which generates the Collatz sequence, which can be displayed by SEQUENCE_STREAK_DISPLAY().
gridlines, a MATLAB code which gives the user more control over drawing gridlines on a graph than the builtin "grid on" command.
nested_sequence_display, a MATLAB code which reads a set of sequences, plots them as horizontal lines of data, and connects sequence entries that are equal.
van_der_corput, a MATLAB code which generates the van der Corput sequence, which can be displayed by SEQUENCE_STREAK_DISPLAY().