b8f8bbb6e8f5480174c4c49445bc0e7d952f3946,ggplot/geoms/geom_abline.py,geom_abline,_plot_unit,#geom_abline#Any#Any#,16
Before Change
slope = self.params["slope"]
intercept = self.params["intercept"]
pinfo["label"] = self.params["label"]
if isinstance(x[0], Timestamp):
ax.set_autoscale_on(False)
ax.plot(ax.get_xlim(),ax.get_ylim())
else:
start, stop = np.max(x), np.min(x)
step = ((stop-start)) / 100.0
x_rng = np.arange(start, stop, step)
y_rng = x_rng * slope + intercept
ax.plot(x_rng, y_rng, **pinfo)
After Change
// Determine line function
line_func = lambda x: x*slope + intercept
// Get "x" points within limit and map to "y" coordinates
x_points = np.linspace(min(xlim) ,max(xlim),100)
y_points = np.array(map(line_func,x_points))
// detemine which points are still within the limit of the plot
in_range = np.logical_and(y_points > min(ylim),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances 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: nilearn/nilearn
Commit Name: b5d529ade954f627b62dd33a94313c5d58cb71c8
Time: 2015-03-18
Author: abraham.alexandre@gmail.com
File Name: nilearn/_utils/niimg.py
Class Name:
Method Name: new_img_like
Project Name: SINGROUP/dscribe
Commit Name: 097217a383e91ea4d11448a55dff79c748cf641d
Time: 2017-08-08
Author: lauri.himanen@aalto.fi
File Name: describe/utils/stats.py
Class Name:
Method Name: system_stats