Download QCChart2D User Manual - Quinn
Transcript
Simple Plot Objects 253 Individual scatter plot symbols in a scatter plot object can have unique properties. Use the objects SetSegmentAttributesMode and SetSegmentAttributes methods. Simple scatter plot example (extracted from the example program ScatterPlots, class SimpleScatter) [C#] pTransform1.SetGraphBorderDiagonal(0.15, .15, .90, 0.725) ; Background background = new Background( pTransform1, ChartObj.PLOT_BACKGROUND, Color.White); chartVu.AddChartObject(background); . . // Define and add axes, axes labels and grids to chart . ChartAttribute attrib1 = new ChartAttribute (Color.Blue, 1,DashStyle.Solid); attrib1.SetFillColor (Color.Blue); attrib1.SetFillFlag (true); attrib1.SetSymbolSize(10); SimpleScatterPlot thePlot1 = new SimpleScatterPlot(pTransform1, Dataset2, ChartObj.CROSS, attrib1); chartVu.AddChartObject(thePlot1); ChartAttribute attrib3 = new ChartAttribute (Color.Red, 1,DashStyle.Solid); attrib3.SetFillColor (Color.Red); attrib3.SetFillFlag (true); attrib3.SetSymbolSize(6); SimpleScatterPlot thePlot3 = new SimpleScatterPlot(pTransform1, Dataset3, ChartObj.CIRCLE, attrib3); chartVu.AddChartObject(thePlot3); [Visual Basic] Dim pTransform1 As New CartesianCoordinates(ChartObj.LINEAR_SCALE, _ ChartObj.LINEAR_SCALE) pTransform1.AutoScale(Dataset3, ChartObj.AUTOAXES_FAR, ChartObj.AUTOAXES_FAR) pTransform1.SetGraphBorderDiagonal(0.125, 0.15, 0.95, 0.725) Dim background As New Background(pTransform1, ChartObj.PLOT_BACKGROUND, _ Color.White) chartVu.AddChartObject(background) . . ‘ Define and add axes, axes labels and grids to chart . Dim attrib1 As New ChartAttribute(Color.Blue, 1, DashStyle.Solid) attrib1.SetFillColor(Color.Blue) attrib1.SetFillFlag(True) attrib1.SetSymbolSize(10) Dim thePlot1 As New SimpleScatterPlot(pTransform1, Dataset2, _ ChartObj.CROSS, attrib1) chartVu.AddChartObject(thePlot1) Dim attrib2 As New ChartAttribute(Color.Green, 3, DashStyle.Solid) Dim thePlot2 As New SimpleLinePlot(pTransform1, Dataset1, attrib2) chartVu.AddChartObject(thePlot2) Dim attrib3 As New ChartAttribute(Color.Red, 1, DashStyle.Solid) attrib3.SetFillColor(Color.Red) attrib3.SetFillFlag(True) attrib3.SetSymbolSize(6) Dim thePlot3 As New SimpleScatterPlot(pTransform1, Dataset3, _ ChartObj.CIRCLE, attrib3) chartVu.AddChartObject(thePlot3)
Related documents
QCChart3D 3D Charting Tools for .Net - Quinn
QCChart2D for WPF User Manual - Quinn
QCChart2D CF Charting Library for the .Net Compact Framework
QCRTGraph for WPF User Manual - Quinn
QCSPCChart SPC Control Chart Tools for .Net CF - Quinn
tymoraPRO traderSCAN User`s Manual
TopSURV Reference Manual
MAPublisher 8.3 User Guide
Real-Time Graphics Tools for .Net Class Summary
QCRTGraph CF Real-Time Graphics Tools for the - Quinn
QCSPCChart SPC Control Chart Tools for - Quinn
Real-Time Graphics Tools for Silverlight User Manual