Displaying the Data on the Chart

Press Chart button to draw on the chart the active variable, the last result of the expression or the result of the last line of the script.

The chart is updated with the new data in all visualizer windows each time you press F7 or F8 or the debugger stops at a breakpoint. For complex data the chart displays the magnitude. To display the real or the imaginary components, use an expression such as real(x) or imag(x).

Charting vectors

Vectors are displayed on a line chart:

A vector on a line chart

The steps on the x axis are controlled in three ways.

The x axis with xStep and xOffset

For equidistant vectors, assign values to the variables xStep and xOffset, defined with an expression or a script. This is the chart with xStep defined as 0.1:

A vector charted with xStep 0.1

xStep can be entered directly into the expression line, for example:

xStep entered into the expression line

Once you press Enter on the expression, the chart displays the variable xStep. To see the active variable again, type x and press Enter. The caption of the visualizer window shows the name of the variable charted.

The x axis with non-equidistant spacing

For non-equidistant vectors, define the variable xAxis. This expression, for example, defines the values on the x axis:

xAxis = [0.2, 2, 3, 5]

This is the display of the same variable a:

The vector a charted against xAxis

The x axis with variable mapping

You can map a debugger variable directly to the local name xStep, xOffset or xAxis, by changing its Name in script. Everything related to scripts is active only when the expression or the script is active Expression and script buttons. In this example aVar is mapped to xStep:

aVar mapped to xStep

Here the expression mode is active. The expression is x, which is always an alias of the active variable.

Charting matrices

These options are available from the drop-down menu of the chart:

The drop-down menu of the chart

Drawing with the grid series

By default a matrix is displayed in a color grid with a rainbow palette:

A matrix drawn with the grid series

The maximum value is red and the minimum blue. The matrix c above has one row, which holds 1000 values sorted in ascending order, from 0 to 999.

Drawing the matrix as a list of rows or columns

The rows or the columns of a matrix can also be displayed on the line chart:

The rows of a matrix on a line chart

At most 10 rows or columns are drawn: of a matrix with more than 10 rows, only the first 10. In this mode the chart respects the variables xAxis, xStep and xOffset, as it does for vectors. In the image above, xAxis was set to:

xAxis = [2,3,4]

and the matrix charted was set in Delphi with:

c := [[1.1, 2.1, 1.5],
[  3, 3.5,   2]];

To draw three vectors x1, x2 and x3 of the same size on the same chart, first form a matrix with three rows. An expression does that too:

c = [x1; x2; x3]