Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Simplify flow in arrow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
kiwifb committed Nov 14, 2015
1 parent a733692 commit 04997f6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/sage/plot/arrow.py
Expand Up @@ -405,10 +405,7 @@ def __call__(self, renderer, gc, tpath, affine, rgbFace):
vert1, code1 = path.vertices, path.codes
import numpy as np

if np.array_equal(vert1, tpath.vertices) and np.array_equal(code1, tpath.codes):
return True
else:
return False
return np.array_equal(vert1, tpath.vertices) and np.array_equal(code1, tpath.codes)


class ConditionalStroke(pe.RendererBase):
Expand Down

0 comments on commit 04997f6

Please sign in to comment.