Quiver arrows changes style when ploting plot as subplot

I want to create a couple of plots, and then compile them into a single figure. One of the subplots containing quiver arrows, and they behave weirdly when I do so. The code and figures should demonstrate quite well in this example:

using Plots

# Plots the quiver plot
qLx = 0.06; qLy = 0.04;; qW = 2;
(x,y)=(0.45,0.6); (d1,d2)=(1,-1); scatter!((x,y),color=:black,label=""); quiver([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.3,0.85); (d1,d2)=(-1,-1); scatter!((x,y),color=:black,label=""); quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.1,0.6); (d1,d2)=(1,-1); scatter!((x,y),color=:black,label=""); quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.8,0.4); (d1,d2)=(-1,1); scatter!((x,y),color=:black,label=""); quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.45,0.25); (d1,d2)=(1,1); scatter!((x,y),color=:black,label=""); quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.25,0.1); (d1,d2)=(-1,1); scatter!((x,y),color=:black,label=""); quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)
(x,y)=(0.1,0.0225); (d1,d2)=(1,1); scatter!((x,y),color=:black,label=""); p1 = quiver!([x,x],[y,y],quiver=([0.0,d1*qLy],[d2*qLx,0.0]),color=:black,size=(600,400),lw=qW)

p1

# Creates some other plot
p2 = plot(x->x^2)

p2

# Plots them in the same plot
plot(p1,p2,size=(1200,400))

As you can see, the style of the arrows has changed when I plot the (already created) plot in a subplot. What happened? How do I get the arrows to look like in the first plot, but when plotted in a subplot?

1 Like