Skip to content

Commit 027b0bf

Browse files
committed
reverse plot order for complex segment to support arrows
1 parent b3cf911 commit 027b0bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Plot/Plot.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,12 @@ end
113113
[a[1],b[1]], [a[2],b[2]]
114114
end
115115

116+
117+
@recipe function f(dd::Segment{<:Complex})
118+
a,b = endpoints(dd)
119+
[real(a),real(b)], [imag(a),imag(b)]
120+
end
121+
116122
@recipe function f(dd::UnionDomain)
117123
@series component(dd,1)
118124
for k=2:ncomponents(dd)

0 commit comments

Comments
 (0)