| |||||
Introducing SharpPlot Your First Chart Recent Updates Tutorials General Tutorials Chart Tutorials Reference SharpPlot Class Properties Methods Structures Enumerations Style examples Glossaries Active Charts VectorMath Class DBUtil Class Get SharpPlot Download SharpPlot Buying SharpPlot SharpPlot Support Upgrading from GraPL Release notes |
Home > Sample Charts > TraceChart TraceChartTrace 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 |