public void AddLines(Graphics g, ChartStyle cs) { // Plot lines: foreach (DataSeries ds in DataSeriesList) { if (ds.LineStyle.IsVisible == true) { var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness); aPen.DashStyle = ds.LineStyle.Pattern; for (int i = 1; i < ds.PointList.Count; i++) g.DrawLine (aPen, cs.Point2D ((CGPoint)ds.PointList[i - 1]), cs.Point2D ((CGPoint)ds.PointList[i])); aPen.Dispose (); } } }
public void AddLines(Graphics g, ChartStyle cs) { // Plot lines: foreach (DataSeries ds in DataSeriesList) { if (ds.LineStyle.IsVisible == true) { var aPen = new Pen(ds.LineStyle.LineColor, ds.LineStyle.Thickness); aPen.DashStyle = ds.LineStyle.Pattern; for (int i = 1; i < ds.PointList.Count; i++) { g.DrawLine(aPen, cs.Point2D((CGPoint)ds.PointList[i - 1]), cs.Point2D((CGPoint)ds.PointList[i])); } aPen.Dispose(); } } }
public DrawingView(CGRect rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; AutoresizingMask = UIViewAutoresizing.All; BackColor = Color.White; dc = new DataCollection(); cs = new ChartStyle(this); cs.XLimMin = 0f; cs.XLimMax = 6f; cs.YLimMin = -1.5f; cs.YLimMax = 1.5f; cs.XTick = 1f; cs.YTick = .5f; cs.TickFont = new Font("Arial", 7, FontStyle.Regular); cs.XLabel = "X Axis"; cs.YLabel = "Y Axis"; cs.Title = "Sine & Cosine Plot"; cs.TitleFont = new Font("Arial", 10, FontStyle.Regular); }
public DrawingView(CGRect rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; AutoresizingMask = UIViewAutoresizing.All; BackColor = Color.White; dc = new DataCollection (); cs = new ChartStyle (this); cs.XLimMin = 0f; cs.XLimMax = 6f; cs.YLimMin = -1.5f; cs.YLimMax = 1.5f; cs.XTick = 1f; cs.YTick = .5f; cs.TickFont = new Font ("Arial", 7, FontStyle.Regular); cs.XLabel = "X Axis"; cs.YLabel = "Y Axis"; cs.Title = "Sine & Cosine Plot"; cs.TitleFont = new Font ("Arial", 10, FontStyle.Regular); }
public DrawingView(RectangleF rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; this.AutoresizingMask = UIViewAutoresizing.All; this.BackColor = Color.White; // Set Form1 size: // this.Width = 350; // this.Height = 300; dc = new DataCollection(); cs = new ChartStyle(this); cs.XLimMin = 0f; cs.XLimMax = 6f; cs.YLimMin = -1.5f; cs.YLimMax = 1.5f; cs.XTick = 1f; cs.YTick = 0.5f; cs.TickFont = new Font("Arial", 7, FontStyle.Regular); cs.XLabel = "X Axis"; cs.YLabel = "Y Axis"; cs.Title = "Sine & Cosine Plot"; cs.TitleFont = new Font("Arial", 10, FontStyle.Regular); }
public DrawingView(RectangleF rect) : base(rect) { ContentMode = UIViewContentMode.Redraw; this.AutoresizingMask = UIViewAutoresizing.All; this.BackColor = Color.White; // Set Form1 size: // this.Width = 350; // this.Height = 300; dc = new DataCollection(); cs = new ChartStyle(this); cs.XLimMin = 0f; cs.XLimMax = 6f; cs.YLimMin = -1.5f; cs.YLimMax = 1.5f; cs.XTick = 1f; cs.YTick = 0.5f; cs.TickFont = new Font("Arial", 7, FontStyle.Regular); cs.XLabel = "X Axis"; cs.YLabel = "Y Axis"; cs.Title = "Sine & Cosine Plot"; cs.TitleFont = new Font("Arial", 10, FontStyle.Regular); }