Home > Sample Charts > TraceChart

TraceChart

Trace charts are a slightly specialist style of plot, originally designed for data from devices like seismographs and EEGs where multiple pens trace out (almost) parallel lines. Each pen is allocated a tickmark on the Y-axis and then an ‘inner axis’ is created for it (naturally these inner axes are all scaled identically).

The trace may be filled (a style of chart often used to show inventories in a tank-farm at an oil refinery) or it may be drawn symmetrically to create a style called a ‘Kite diagram’ which often appears in botanical studies of vegetation coverage.


SharpPlot sp = new SharpPlot;
sp.SetMargins(12,12,18,4);
tracedata = new int[][]{new int[]{0,4,9,12,5,5,10,2},new int[]{0,5,7,8,3,2,9,1},
         new int[]{0,3,3,4,0,1,4,1}};
sp.YAxisStyle = YAxisStyles.GridLines|YAxisStyles.ArrowedAxis;
sp.IAxisStyle = IAxisStyles.PlainAxis;
sp.DrawTraceChart(tracedata);

Worked Examples

tracechart1 tracechart2 tracechart3 tracechart4

Send comments on this topic
© Dyalog Ltd 2013