sympy/sympy — pull request #1388 by catchmrbharath (2012-06-27 06:50:22+00:00)
Title: Adaptive sampling for LineOver2dSeries

Adaptive sampling for Line plots

Pros:

- does not oversample
- makes sure the plots don't suffer from aliasing
- highlights branch cuts

Cons

- Does not work well with get_color_array.

This method also does not work well for parametric plots. Hence I have not included it.
The performance is not affected.

```plot(summation(sin(pi*k**2*x)/(pi*k**2), (k, 1, 100)), (x, 0, 1))``` takes 2.17 seconds on an i5 machine to render. The difference in images is quite significant in the images.

**With adaptive sampling**
![Adaptive Sampling](http://img36.imageshack.us/img36/4417/adaptimage.png)

**Without adaptive sampling**
![Without adaptive sampling](http://img835.imageshack.us/img835/3805/withoutadapt.png)