@@ -0,0 +1,697 @@
+from __future__ import absolute_import, division, print_function%0A%0Aimport numpy as np%0Aimport pandas as pd%0A%0Afrom .. import ggplot, aes, geom_histogram, geom_freqpoly, geom_point%0Afrom .conftest import cleanup%0A%0An = 10  # Some even number greater than 2%0A%0A# ladder: 0 1 times, 1 2 times, 2 3 times, ...%0Adf = pd.DataFrame(%7B'x': np.repeat(range(n+1), range(n+1)),%0A                   'z': np.repeat(range(n//2), range(3, n*2, 4))%7D)%0A%0A%0A@cleanup%0Adef test_midpoint():%0A    p = (ggplot(df, aes('x')) +%0A         geom_histogram(aes(fill='factor(z)'), bins=n, alpha=0.25) +%0A         geom_freqpoly(bins=n, size=4) +%0A         geom_point(stat='bin', bins=n, size=4, stroke=0, color='red'))%0A%0A    assert p == 'midpoint'%0A

Add geom_freqpoly tests