Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c5042fa

Browse files
committed
Remove print statements in dead comments.
1 parent ef5248f commit c5042fa

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

lib/matplotlib/lines.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,25 +93,21 @@ def segment_hits(cx, cy, x, y, radius):
9393
Lnorm_sq = dx ** 2 + dy ** 2 # Possibly want to eliminate Lnorm==0
9494
u = ((cx - xr) * dx + (cy - yr) * dy) / Lnorm_sq
9595
candidates = (u >= 0) & (u <= 1)
96-
#if any(candidates): print "candidates",xr[candidates]
9796

9897
# Note that there is a little area near one side of each point
9998
# which will be near neither segment, and another which will
10099
# be near both, depending on the angle of the lines. The
101100
# following radius test eliminates these ambiguities.
102101
point_hits = (cx - x) ** 2 + (cy - y) ** 2 <= radius ** 2
103-
#if any(point_hits): print "points",xr[candidates]
104102
candidates = candidates & ~(point_hits[:-1] | point_hits[1:])
105103

106104
# For those candidates which remain, determine how far they lie away
107105
# from the line.
108106
px, py = xr + u * dx, yr + u * dy
109107
line_hits = (cx - px) ** 2 + (cy - py) ** 2 <= radius ** 2
110-
#if any(line_hits): print "lines",xr[candidates]
111108
line_hits = line_hits & candidates
112109
points, = point_hits.ravel().nonzero()
113110
lines, = line_hits.ravel().nonzero()
114-
#print points,lines
115111
return np.concatenate((points, lines))
116112

117113

lib/mpl_toolkits/axisartist/angle_helper.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,9 @@ def select_step(v1, v2, nv, hour=False, include_last=True,
114114

115115
# for degree
116116
if dv > 1./threshold_factor:
117-
#print "degree"
118117
step, factor = _select_step(dv)
119118
else:
120119
step, factor = select_step_sub(dv*threshold_factor)
121-
#print "feac", step, factor
122120

123121
factor = factor * threshold_factor
124122

0 commit comments

Comments
 (0)