From: SourceForge.net <no...@so...> - 2007-03-26 20:19:58
|
Bugs item #1688713, was opened at 2007-03-26 20:19 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1688713&group_id=161868 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: randalx (randalx) Assigned to: Nobody/Anonymous (nobody) Summary: Problems ploting single point Initial Comment: Hi, My program plots various LinePlots and PointPlots using the AbscissaData and OrdinateData. The data can change based on user interaction. A bug occurs when the data is for only one point. First there is an exception in DateTimeAxis.cs void DrawTicks(...) { ... PointF lastPos = WorldToPhysical((double)largeTicks[0], physicalMin, physicalMax, true);//ed The exception is due to accessing largeTicks[0]. The previous call to WorldTickPositions() fails to add any data to the largeTicks array. A quick fix was to add the following code: if (largeTicks.Count <= 0) { return; } But the result is not very satisfactory as I'd still like to see the point plotted. My temporary hack was to adjust the XAxis1.WorldMax and XAxis1.WorldMin by 100 so as to show a centered point but this is far from ideal. Thanks, Randal ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=821568&aid=1688713&group_id=161868 |