Skip to content

Commit

Permalink
Antialiasing für Plot aktiviert
Browse files Browse the repository at this point in the history
  • Loading branch information
Elias Ruemmler committed Mar 8, 2019
1 parent 8f3df14 commit f9ba5fb
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions FlowCalc/ChartView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,9 @@ private void CreateChart(ZedGraphControl zgc)
wp.Line.IsOptimizedDraw = true;
wp.Line.IsVisible = false;
wp.Symbol.Type = SymbolType.Diamond;
wp.Symbol.Size = 6f;
wp.Symbol.Size = 6.5f;
wp.Symbol.Fill.Type = FillType.Solid;
wp.Symbol.IsAntiAlias = true;

wp = pane.AddCurve("Arbeitspunkt Q", new double[2] { PowerPoint.Item1, PowerPoint.Item1 },
new double[2] { 0, PowerPoint.Item2 }, Color.DarkOrange);
Expand All @@ -126,12 +127,13 @@ private void CreateChart(ZedGraphControl zgc)
//Add the data
LineItem curve = pane.AddCurve(curveData.Key, curveData.Value, GetColorByIndex(i++));

curve.Line.IsOptimizedDraw = true;
curve.Line.Width = 2f;
//curve.Line.IsOptimizedDraw = true;
curve.Line.Width = 1.7f;
curve.Line.IsAntiAlias = true;
curve.Symbol.Type = SymbolType.Circle;
curve.Symbol.Size = 3f;
curve.Symbol.Size = 3.2f;
curve.Symbol.Fill.Type = FillType.Solid;
curve.Symbol.IsAntiAlias = true; //Makes the circles smoother
curve.Symbol.IsAntiAlias = true;
}

//Refresh the graph in order to show the new data
Expand Down

0 comments on commit f9ba5fb

Please sign in to comment.