[pattern.visualize] cleanup
This commit is contained in:
parent
ad4e9af59d
commit
2513c7f8fd
1 changed files with 2 additions and 4 deletions
|
|
@ -1106,10 +1106,8 @@ class Pattern(PortList, AnnotatableImpl, Mirrorable):
|
|||
if port.rotation is not None:
|
||||
p1 = offset + port.offset
|
||||
angle = port.rotation
|
||||
size = 1.0 # Arrow size based on bounds or fixed
|
||||
dx = size * numpy.cos(angle)
|
||||
dy = size * numpy.sin(angle)
|
||||
p2 = p1 + numpy.array([dx, dy])
|
||||
size = 1.0 # arrow size
|
||||
p2 = p1 + size * numpy.array([numpy.cos(angle), numpy.sin(angle)])
|
||||
|
||||
axes.annotate(
|
||||
port_name,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue