Free cookie consent management tool by TermsFeed Policy Generator

Changeset 9149


Ignore:
Timestamp:
01/11/13 17:28:51 (11 years ago)
Author:
abeham
Message:

#2002: fixed plotting of points when axis were set to logarithmic

Location:
branches/CMAES/HeuristicLab.Analysis.Views/3.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/CMAES/HeuristicLab.Analysis.Views/3.3/DataTableView.cs

    r9141 r9149  
    505505          break;
    506506        default: {
     507            bool yLogarithmic = series.YAxisType == AxisType.Primary
     508                                  ? Content.VisualProperties.YAxisLogScale
     509                                  : Content.VisualProperties.SecondYAxisLogScale;
     510            bool xLogarithmic = series.XAxisType == AxisType.Primary
     511                                  ? Content.VisualProperties.XAxisLogScale
     512                                  : Content.VisualProperties.SecondXAxisLogScale;
    507513            for (int i = 0; i < row.Values.Count; i++) {
    508514              var value = row.Values[i];
    509               DataPoint point = new DataPoint();
    510               point.XValue = row.VisualProperties.StartIndexZero ? i : i + 1;
    511               if (IsInvalidValue(value))
     515              var point = new DataPoint();
     516              point.XValue = row.VisualProperties.StartIndexZero && !xLogarithmic ? i : i + 1;
     517              if (IsInvalidValue(value) || (yLogarithmic && value <= 0))
    512518                point.IsEmpty = true;
    513519              else
  • branches/CMAES/HeuristicLab.Analysis.Views/3.3/HeuristicLab.Analysis.Views-3.3.csproj

    r9141 r9149  
    184184      <DependentUpon>ScatterPlotDataRowVisualPropertiesControl.cs</DependentUpon>
    185185    </Compile>
    186     <Compile Include="ScatterPlotView.cs">
    187       <SubType>UserControl</SubType>
    188     </Compile>
     186    <Compile Include="ScatterPlotView.cs" />
    189187    <Compile Include="ScatterPlotView.Designer.cs">
    190188      <DependentUpon>ScatterPlotView.cs</DependentUpon>
    191189    </Compile>
    192     <Compile Include="ScatterPlotHistoryView.cs">
    193       <SubType>UserControl</SubType>
    194     </Compile>
     190    <Compile Include="ScatterPlotHistoryView.cs" />
    195191    <Compile Include="ScatterPlotHistoryView.Designer.cs">
    196192      <DependentUpon>ScatterPlotHistoryView.cs</DependentUpon>
    197193    </Compile>
    198194    <None Include="Plugin.cs.frame" />
    199     <Compile Include="AlleleFrequencyCollectionView.cs">
    200       <SubType>UserControl</SubType>
    201     </Compile>
     195    <Compile Include="AlleleFrequencyCollectionView.cs" />
    202196    <Compile Include="AlleleFrequencyCollectionView.Designer.cs">
    203197      <DependentUpon>AlleleFrequencyCollectionView.cs</DependentUpon>
     
    221215      <DependentUpon>DataTableVisualPropertiesDialog.cs</DependentUpon>
    222216    </Compile>
    223     <Compile Include="HeatMapHistoryView.cs">
    224       <SubType>UserControl</SubType>
    225     </Compile>
     217    <Compile Include="HeatMapHistoryView.cs" />
    226218    <Compile Include="HeatMapHistoryView.Designer.cs">
    227219      <DependentUpon>HeatMapHistoryView.cs</DependentUpon>
    228220    </Compile>
    229     <Compile Include="DataTableHistoryView.cs">
    230       <SubType>UserControl</SubType>
    231     </Compile>
     221    <Compile Include="DataTableHistoryView.cs" />
    232222    <Compile Include="DataTableHistoryView.Designer.cs">
    233223      <DependentUpon>DataTableHistoryView.cs</DependentUpon>
    234224    </Compile>
    235     <Compile Include="HeatMapView.cs">
    236       <SubType>UserControl</SubType>
    237     </Compile>
     225    <Compile Include="HeatMapView.cs" />
    238226    <Compile Include="HeatMapView.Designer.cs">
    239227      <DependentUpon>HeatMapView.cs</DependentUpon>
    240228    </Compile>
    241     <Compile Include="AlleleFrequencyView.cs">
    242       <SubType>UserControl</SubType>
    243     </Compile>
     229    <Compile Include="AlleleFrequencyView.cs" />
    244230    <Compile Include="AlleleFrequencyView.Designer.cs">
    245231      <DependentUpon>AlleleFrequencyView.cs</DependentUpon>
    246232    </Compile>
    247     <Compile Include="AlleleFrequencyCollectionHistoryView.cs">
    248       <SubType>UserControl</SubType>
    249     </Compile>
     233    <Compile Include="AlleleFrequencyCollectionHistoryView.cs" />
    250234    <Compile Include="AlleleFrequencyCollectionHistoryView.Designer.cs">
    251235      <DependentUpon>AlleleFrequencyCollectionHistoryView.cs</DependentUpon>
     
    253237    <Compile Include="Plugin.cs" />
    254238    <Compile Include="Properties\AssemblyInfo.cs" />
    255     <Compile Include="DataTableView.cs">
    256       <SubType>UserControl</SubType>
    257     </Compile>
     239    <Compile Include="DataTableView.cs" />
    258240    <Compile Include="DataTableView.Designer.cs">
    259241      <DependentUpon>DataTableView.cs</DependentUpon>
Note: See TracChangeset for help on using the changeset viewer.