I have a code that takes an equation and draws it by using points. For example, if the equation is y=ax^2+b*x+1 - than I will go over the x's from -100 to 100, find their matching Y value and hold a list of points. This is part of my code inside a loop. My window height is 800 and it's width is 800, so for the point (0,0) I put a small Elipse by setting Canvas.SetTop(e1,400) and Canvas.SetLeft(e1,500) and so on. For each point of the equation I put a small elipse on the Canvas to draw the equation.
How can draw the equation better in WPF to get smooth lines, and not a dotted graph?
Ellipse E1 = new Ellipse();
E1.Width = 5;
E1.Height = 5;
E1.Fill = Brushes.Black;
double y;
y = Exp1;
y = y / 5;
x = x / 5;
x = x + 500.0;
y = 400.0 - y;
Canvas.SetTop(E1, y);
Canvas.SetLeft(E1, x);
Can1.Children.Add(E1);