PDFsharp & MigraDoc Foundation http://forum.pdfsharp.de/ |
|
XY scatter plots... http://forum.pdfsharp.de/viewtopic.php?f=4&t=926 |
Page 1 of 1 |
Author: | JonCage [ Tue Nov 03, 2009 10:08 am ] |
Post subject: | XY scatter plots... |
As the title suggests, same as the line plots but without the lines would be great for displaying scientific data. |
Author: | JonCage [ Tue Nov 03, 2009 10:24 am ] |
Post subject: | Re: XY scatter plots... |
I think if you change the following section in LinePlotAreaRenderer.cs from: Code: matrix.TransformPoints(points); gfx.DrawLines(sri.LineFormat, points); DrawMarker(gfx, points, sri); ...to: Code: matrix.TransformPoints(points); if sri.LineFormat.Width > 0: gfx.DrawLines(sri.LineFormat.Width, points); DrawMarker(gfx, points, sri); ...this would achieve the result - we'd just need to set the line width to 0. |
Author: | SteffenB [ Tue Mar 29, 2011 11:47 am ] |
Post subject: | Re: XY scatter plots... |
JonCage wrote: I think if you change the following section in LinePlotAreaRenderer.cs from: Code: matrix.TransformPoints(points); gfx.DrawLines(sri.LineFormat, points); DrawMarker(gfx, points, sri); ...to: Code: matrix.TransformPoints(points); if sri.LineFormat.Width > 0: gfx.DrawLines(sri.LineFormat.Width, points); DrawMarker(gfx, points, sri); ...this would achieve the result - we'd just need to set the line width to 0. This brings no success, because SeriesRendererInfo.LineFormat.Width internaly alway is set to ChartRenderer.DefaultSeriesLineWidth. I think the better way is to set SeriesRendererInfo.LineFormat.Visible to false e.g. setting Series.LineFormat.Visible to false. I tried this and it works! |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |