Menu

#54 [CurveItem.AddPoint] with [Date type XAxis]

closed
nobody
None
5
2012-09-19
2007-03-23
Ulysess
No

v5.0.1 is OK.
v5.0.6 and v5.0.7 has problem.

if XAxis is set to [Date] type then use [CurveItem.AddPoint] add some points which these points' X value is diffrent by minutes and/or seconds, result is wrong.
but use [GraphPane.AddCurve] and [PointPairList] with the same points set, result is right. if X value is diffrent by year/month/day/hour result is right too.

see picture. above is v5.0.7, below is v5.0.1

sorry for my poor English, wish you could undersand

Discussion

  • Ulysess

    Ulysess - 2007-03-23
     
  • John Champion

    John Champion - 2007-03-23

    Logged In: YES
    user_id=957634
    Originator: NO

    Hi,
    Thanks for the bug report. The problem is that PointPairBase was missing a copy constructor, so C# was using the implicit PointF operator (causing the values to be converted to float's, which loses resolution). I've made a simple fix for this which will be in the next release. In the meantime, you can work around it like this:

    Instead of using myCurve.AddPoint, use myCurve.Points as follows

    (myCurve.Points as IPointListEdit).Add( x, y );

    John

     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Log in to post a comment.