[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:
|
if port.rotation is not None:
|
||||||
p1 = offset + port.offset
|
p1 = offset + port.offset
|
||||||
angle = port.rotation
|
angle = port.rotation
|
||||||
size = 1.0 # Arrow size based on bounds or fixed
|
size = 1.0 # arrow size
|
||||||
dx = size * numpy.cos(angle)
|
p2 = p1 + size * numpy.array([numpy.cos(angle), numpy.sin(angle)])
|
||||||
dy = size * numpy.sin(angle)
|
|
||||||
p2 = p1 + numpy.array([dx, dy])
|
|
||||||
|
|
||||||
axes.annotate(
|
axes.annotate(
|
||||||
port_name,
|
port_name,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue