Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/27/09 20:23:17 (15 years ago)
Author:
mstoeger
Message:

Display of X- and Y-Axis-Labels (#556)

File:
1 edited

Legend:

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

    r1458 r1462  
    7070      f.ShowDialog();
    7171    }
    72 
     72     
    7373    [Test]
    7474    public void TestAxes() {
     
    8282      YAxisDescriptor yaxis2 = new YAxisDescriptor();
    8383
     84      model.XAxisLabel = "X Axis";
     85      model.ShowXAxisLabel = true;
     86
    8487      yaxis1.Label = "Y-Axis 1";
     88      yaxis1.ShowYAxisLabel = true;
     89      yaxis1.Position = AxisPosition.Left;
     90      yaxis1.ShowGrid = true;
     91      yaxis1.GridColor = Color.Gray;
     92
    8593      yaxis2.Label = "Y-Axis 2";
    86 
    87       yaxis1.Position = AxisPosition.Left;
     94      yaxis2.ShowYAxisLabel = true;
    8895      yaxis2.Position = AxisPosition.Right;
    89 
    90       yaxis1.ShowGrid = true;
    9196      yaxis2.ShowGrid = false;
    92 
    93       yaxis1.GridColor = Color.Gray;
    9497
    9598      row1.Color = Color.Red;
     
    108111      row3.Label = "Die Blaue";
    109112      row3.YAxis = yaxis2;
    110       row3.YAxis.Label = "Die Blaue";
    111113
    112114      model.AddDataRow(row1);
    113115      model.AddDataRow(row2);
    114116      model.AddDataRow(row3);
    115 
    116       row1.YAxis.Label = "Rot und Grün";
    117117
    118118      Random rand = new Random(42);
Note: See TracChangeset for help on using the changeset viewer.