'julia savefig() saves wrong marker shape

The code is to using PyPlot to scatter and save in julia.

using PyPlot;pygui(true)

fig = figure()
for i = 1:400

    scatter([i,i+1], [i+1, i+2], color = "blue", s = 0.1)
end
PyPlot.savefig("1.png", figsize = (16, 9),dpi = 1200, bbox_inches="tight")

But the plot result and saved figure is different: What I want is some simple dots: enter image description here

But in saved figure the marker shape is circles : enter image description here

As you can see, the marker type is changed. I found this only occurs when scattering highly dense dots. How should I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source