Quantcast
Channel: OxyPlot (moved to GitHub)
Viewing all articles
Browse latest Browse all 2061

New Post: Panning error in Log axis with Absolute Min/Max

$
0
0
Dears,

I found one issue when it applies Log axis with Absolute Min/Max values, Panning should be blocked with those absolute values, but when I tried the panning, the chart showed wrong range of values and graph was disappeared.

I think I found the cause of this as below, but I'm not sure how I can apply this modification on you main source tree, so, after reviewing this I would appreciate it if you could apply this change on your main release.

in "LogarithmicAxis.cs"
    public override void Pan(ScreenPoint ppt, ScreenPoint cpt)
    {
       ...
        if (newMaximum > this.AbsoluteMaximum)
        {
            newMaximum = this.AbsoluteMaximum;
            //Original Code
            // newMinimum = newMaximum * this.ActualMaximum / this.ActualMinimum;

            // New Fix
            newMinimum = newMaximum / this.ActualMaximum / this.ActualMinimum;
        }
    }
Regards,
Ian Ryou.

Viewing all articles
Browse latest Browse all 2061

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>