Commit ed535599 authored by Victor Boussange's avatar Victor Boussange
Browse files

minor change to plot function

parent 9d0a8775
using Plots import Plots:plot,@recipe,@series
# function designed for Wright Fisher process # function designed for Wright Fisher process
@recipe function plot(world::Array{U},p;what=["x","H"],trait = 1) where U <: Union{Missing,Agent{T}} where T @recipe function plot(world::Array{U},p;what=["x","H"],trait = 1) where U <: Union{Missing,Agent{T}} where T
# We reduce time interval if it is too big # We reduce time interval if it is too big
...@@ -41,7 +41,7 @@ using Plots ...@@ -41,7 +41,7 @@ using Plots
xlabel := "time" xlabel := "time"
ylabel := "trait value" ylabel := "trait value"
label := "" label := ""
markersize := 2.3/1000*size(world,1) # markersize := 2.3/1000*size(world,1)
tspan_ar[:],xarray[:] tspan_ar[:],xarray[:]
end end
end end
...@@ -57,7 +57,7 @@ using Plots ...@@ -57,7 +57,7 @@ using Plots
ylabel := "geotrait" ylabel := "geotrait"
zlabel := "trait value" zlabel := "trait value"
label := "" label := ""
markersize := 2.3/1000*size(world,1) # markersize := 2.3/1000*size(world,1)
tspan_ar,xarray[:],yarray[:] tspan_ar,xarray[:],yarray[:]
end end
end end
...@@ -73,7 +73,7 @@ using Plots ...@@ -73,7 +73,7 @@ using Plots
ylabel := "position" ylabel := "position"
zlabel := "trait value" zlabel := "trait value"
label := "" label := ""
markersize := 2.3/1000*size(world,1) # markersize := 2.3/1000*size(world,1)
tspan_ar,xarray[:],yarray[:] tspan_ar,xarray[:],yarray[:]
end end
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment