Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/16/08 09:33:24 (16 years ago)
Author:
mkommend
Message:

corrected initial zoom to use absolute range values (ticket #310)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Logging/PointXYChartView.cs

    r671 r673  
    108108              if (value[1] > maxY) maxY = value[1];
    109109
    110               datachart.AddDataPoint(i, value[0], value[1]);
     110              datachart.AddDataPoint(i, value[0], value[1]);                                                         
    111111            }
    112112          }
    113113        }
    114         datachart.ZoomIn(minX - (minX * 0.1), minY - (minY * 0.1), maxX * 1.05 , maxY * 1.05);
     114        datachart.ZoomIn(minX - (Math.Abs(maxX - minX) * 0.1), minY - (Math.Abs(maxY -minY) * 0.1), maxX + (Math.Abs(maxX - minX) * 0.1), maxY + (Math.Abs(maxY - minY) * 0.1));
    115115        datachart.UpdateEnabled = true;
    116116        datachart.EnforceUpdate();
Note: See TracChangeset for help on using the changeset viewer.