Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/14/09 19:01:46 (15 years ago)
Author:
cbahner
Message:

#519 added floating average

Location:
trunk/sources/HeuristicLab.Visualization.Test
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Visualization.Test

    • Property svn:ignore set to
      bin
      obj
  • trunk/sources/HeuristicLab.Visualization.Test/3.2/LineChartTests.cs

    r1607 r1818  
    371371        model.AddDataRow(row2);
    372372
    373         // insert 2 floating avg line aggregators (for each hacked line)
    374 
    375         // test floating avg aggregator without visible watcher line
    376 
     373        FloatingAvgAggregator avgAggregator = new FloatingAvgAggregator {
     374                                                                          Thickness = 2,
     375                                                                          Label = "floatingAvg",
     376                                                                          Color = Color.Peru,
     377                                                                          ShowMarkers = false,
     378                                                                          Style = DrawingStyle.Solid
     379                                                                        };
     380
     381        avgAggregator.AddWatch(row1);
     382        model.AddDataRow(avgAggregator);
     383
     384        FloatingAvgAggregator avgAggregator2 = new FloatingAvgAggregator {
     385          Thickness = 2,
     386          Label = "floatingAvg",
     387          Color = Color.Aqua,
     388          ShowMarkers = false,
     389          Style = DrawingStyle.Solid
     390        };
     391
     392        avgAggregator2.AddWatch(row2);
     393        model.AddDataRow(avgAggregator2);
     394
     395       
    377396        double i = 0;
    378397        Random rnd = new Random();
    379398
    380         while (!_shouldStop && i <= 240) {
     399        while (!_shouldStop && i <= 100) {
    381400          i += 0.2;
    382401          double newY = Math.Sin(i);
Note: See TracChangeset for help on using the changeset viewer.