14538c6714f45c0dbd6c95ff351c272c9cf85701,ggplot/stats/stat_abline.py,stat_abline,_calculate,#stat_abline#Any#,15
Before Change
"Specified {} slopes but {} intercepts".format(n, _n))
if n == 1:
slope = [slope]
intercept = [intercept]
pinfo["slope"] = slope
pinfo["intercept"] = intercept
return pinfo
After Change
raise Exception(
"Specified {} slopes but {} intercepts".format(n, _n))
slope = make_iterable(slope)
intercept = make_iterable(intercept)
new_data = pd.DataFrame({"slope": slope, "intercept": intercept})
// Copy the other aesthetics into the new dataframe
n = len(slope)
for ae in data:
new_data[ae] = make_iterable_ntimes(data[ae].iloc[0], n)
return new_data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 18
Instances
Project Name: has2k1/plotnine
Commit Name: 14538c6714f45c0dbd6c95ff351c272c9cf85701
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_abline.py
Class Name: stat_abline
Method Name: _calculate
Project Name: has2k1/plotnine
Commit Name: 14538c6714f45c0dbd6c95ff351c272c9cf85701
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_abline.py
Class Name: stat_abline
Method Name: _calculate
Project Name: has2k1/plotnine
Commit Name: 14538c6714f45c0dbd6c95ff351c272c9cf85701
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_hline.py
Class Name: stat_hline
Method Name: _calculate
Project Name: has2k1/plotnine
Commit Name: 14538c6714f45c0dbd6c95ff351c272c9cf85701
Time: 2014-04-29
Author: has2k1@gmail.com
File Name: ggplot/stats/stat_vline.py
Class Name: stat_vline
Method Name: _calculate