mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +00:00
Set limits
This commit is contained in:
parent
96d20300bc
commit
1b93a57df2
1 changed files with 6 additions and 2 deletions
|
@ -151,20 +151,24 @@ function plot_radial_distributions(
|
|||
|
||||
fig = gen_figure()
|
||||
|
||||
min_lower_radius = 0.0
|
||||
max_lower_radius = maximum(lower_radii)
|
||||
|
||||
min_g = 0.0
|
||||
max_g = maximum(maximum.(gs))
|
||||
|
||||
ax = Axis(
|
||||
fig[1:2, 1:2];
|
||||
xticks=0:(2 * particle_radius):ceil(Int64, max_lower_radius),
|
||||
xticks=0:(2 * particle_radius):floor(Int64, max_lower_radius),
|
||||
yticks=0:ceil(Int64, max_g),
|
||||
xlabel=L"r / d",
|
||||
ylabel=L"g",
|
||||
limits=(min_lower_radius, max_lower_radius, min_g, max_g),
|
||||
)
|
||||
|
||||
lines!(
|
||||
ax,
|
||||
SVector(0.0, max_lower_radius),
|
||||
SVector(min_lower_radius, max_lower_radius),
|
||||
SVector(1.0, 1.0);
|
||||
linestyle=:dash,
|
||||
color=:red,
|
||||
|
|
Loading…
Reference in a new issue