1ab4e7bfc2aa7472ec2ae5fc9c55c02ef218cc55,ggplot/stats/stat_density.py,stat_density,_calculate,#stat_density#Any#Any#,19
Before Change
// i.e tail off to zero like ggplot2? But there is nothing
// wrong with the current state.
kde = gaussian_kde(x)
bottom = np.min(x)
top = np.max(x)
step = (top - bottom) / 1000.0
x = np.arange(bottom, top, step)
y = kde.evaluate(x)
new_data = pd.DataFrame({"x": x, "y": y})
After Change
weight = np.ones(len(x))
kde = gaussian_kde(x)
x2 = np.linspace(range_x[0], range_x[1], 1000)
y = kde.evaluate(x2)
new_data = pd.DataFrame({"x": x2, "y": y})
return new_data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: has2k1/plotnine
Commit Name: 1ab4e7bfc2aa7472ec2ae5fc9c55c02ef218cc55
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_density.py
Class Name: stat_density
Method Name: _calculate
Project Name: has2k1/plotnine
Commit Name: b8f8bbb6e8f5480174c4c49445bc0e7d952f3946
Time: 2014-04-25
Author: eric.chiang.m@gmail.com
File Name: ggplot/geoms/geom_abline.py
Class Name: geom_abline
Method Name: _plot_unit
Project Name: cjekel/piecewise_linear_fit_py
Commit Name: 0bb84f3b54b9222fe981670972cb60e0c1bfdd4b
Time: 2019-04-03
Author: cjekel@gmail.com
File Name: tests/teststf.py
Class Name: TestEverything
Method Name: test_predict
Project Name: has2k1/plotnine
Commit Name: 1ab4e7bfc2aa7472ec2ae5fc9c55c02ef218cc55
Time: 2015-04-20
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_density.py
Class Name: stat_density
Method Name: _calculate