Changeset 4778
- Timestamp:
- 11/12/10 02:50:20 (14 years ago)
- Location:
- trunk/sources
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.Designer.cs
r4749 r4778 71 71 this.chart.BorderlineColor = System.Drawing.Color.Black; 72 72 this.chart.BorderlineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Solid; 73 defaultChartArea.AxisX.Minimum = 0; 73 74 defaultChartArea.CursorX.IsUserEnabled = true; 74 75 defaultChartArea.CursorX.IsUserSelectionEnabled = true; -
trunk/sources/HeuristicLab.Analysis.Views/3.3/DataTableView.cs
r4749 r4778 280 280 Series rowSeries = chart.Series[row.Name]; 281 281 if (!invisibleSeries.Contains(rowSeries)) { 282 foreach (IndexedItem<double> item in e.Items) { 283 var value = item.Value; 284 if (IsInvalidValue(item.Value)) { 285 DataPoint point = new DataPoint(); 286 point.IsEmpty = true; 287 rowSeries.Points.Insert(item.Index, point); 288 } else { 289 rowSeries.Points.InsertY(item.Index, value); 290 } 291 } 282 rowSeries.Points.Clear(); 283 FillSeriesWithRowValues(rowSeries, row); 284 //foreach (IndexedItem<double> item in e.Items) { 285 // var value = item.Value; 286 // DataPoint point = new DataPoint(); 287 // point.XValue = row.VisualProperties.StartIndexZero ? item.Index : item.Index + 1; 288 // if (IsInvalidValue(item.Value)) 289 // point.IsEmpty = true; 290 // else 291 // point.YValues = new double[] { value }; 292 // rowSeries.Points.Add(point); 293 //} 292 294 UpdateYCursorInterval(); 293 295 } … … 304 306 Series rowSeries = chart.Series[row.Name]; 305 307 if (!invisibleSeries.Contains(rowSeries)) { 306 List<DataPoint> points = new List<DataPoint>(); 307 foreach (IndexedItem<double> item in e.Items) 308 points.Add(rowSeries.Points[item.Index]); 309 foreach (DataPoint point in points) 310 rowSeries.Points.Remove(point); 308 rowSeries.Points.Clear(); 309 FillSeriesWithRowValues(rowSeries, row); 310 //List<DataPoint> points = new List<DataPoint>(); 311 //foreach (IndexedItem<double> item in e.Items) 312 // points.Add(rowSeries.Points[item.Index]); 313 //foreach (DataPoint point in points) 314 // rowSeries.Points.Remove(point); 311 315 UpdateYCursorInterval(); 312 316 } … … 345 349 Series rowSeries = chart.Series[row.Name]; 346 350 if (!invisibleSeries.Contains(rowSeries)) { 347 foreach (IndexedItem<double> item in e.Items) { 348 if (IsInvalidValue(item.Value)) 349 rowSeries.Points[item.Index].IsEmpty = true; 350 else { 351 rowSeries.Points[item.Index].YValues = new double[] { item.Value }; 352 rowSeries.Points[item.Index].IsEmpty = false; 353 } 354 } 351 rowSeries.Points.Clear(); 352 FillSeriesWithRowValues(rowSeries, row); 355 353 UpdateYCursorInterval(); 356 354 } … … 369 367 if (!invisibleSeries.Contains(rowSeries)) { 370 368 rowSeries.Points.Clear(); 371 foreach (IndexedItem<double> item in e.Items) { 372 if (IsInvalidValue(item.Value)) 373 rowSeries.Points[item.Index].IsEmpty = true; 374 else { 375 rowSeries.Points[item.Index].YValues = new double[] { item.Value }; 376 rowSeries.Points[item.Index].IsEmpty = false; 377 } 378 } 379 } 380 UpdateYCursorInterval(); 369 FillSeriesWithRowValues(rowSeries, row); 370 UpdateYCursorInterval(); 371 } 381 372 } 382 373 } … … 413 404 for (int i = 0; i < row.Values.Count; i++) { 414 405 var value = row.Values[i]; 415 if (IsInvalidValue(value)) { 416 DataPoint point = new DataPoint(); 406 DataPoint point = new DataPoint(); 407 point.XValue = row.VisualProperties.StartIndexZero ? i : i + 1; 408 if (IsInvalidValue(value)) 417 409 point.IsEmpty = true; 418 series.Points.Add(point); 419 } else { 420 series.Points.Add(value); 421 } 410 else 411 point.YValues = new double[] { value }; 412 series.Points.Add(point); 422 413 } 423 414 } -
trunk/sources/HeuristicLab.Analysis/3.3/AlleleFrequencyAnalyzer.cs
r4777 r4778 166 166 167 167 allelesTable.Rows.Add(new DataRow("Unique Alleles")); 168 allelesTable.Rows["Unique Alleles"].VisualProperties.StartIndexZero = true; 168 169 169 170 allelesTable.Rows.Add(new DataRow("Unique Alleles of Best Known Solution", null));
Note: See TracChangeset
for help on using the changeset viewer.