mirror of
https://gitlab.rlp.net/mobitar/ReCo.jl.git
synced 2024-12-21 00:51:21 +00:00
Fix label
This commit is contained in:
parent
64b48b2046
commit
0d8bf9e0b9
1 changed files with 7 additions and 7 deletions
|
@ -5,7 +5,7 @@ using StaticArrays: SVector
|
|||
using ReCo: ReCo
|
||||
|
||||
function gen_rdf_graphics()
|
||||
Random.seed!(42)
|
||||
Random.seed!(1)
|
||||
|
||||
box_length = 100
|
||||
box_height = 100
|
||||
|
@ -16,8 +16,8 @@ function gen_rdf_graphics()
|
|||
Drawing(box_length, box_height, "$graphics_export_dir/rdf_shells.pdf")
|
||||
origin()
|
||||
|
||||
particle_radius = 5
|
||||
Δr = 3 * particle_radius
|
||||
particle_radius = 6
|
||||
Δr = 2.4 * particle_radius
|
||||
|
||||
setcolor("blue")
|
||||
circle(Point(0, 0), particle_radius, :fill)
|
||||
|
@ -25,8 +25,8 @@ function gen_rdf_graphics()
|
|||
N = 50
|
||||
twice_max_particle_coordinate = box_length
|
||||
|
||||
selected_shell_ind = 2
|
||||
selected_lower_radius = selected_shell_ind * Δr
|
||||
selected_shell_ind = 3
|
||||
selected_lower_radius = (selected_shell_ind - 1) * Δr
|
||||
|
||||
particle_cs = Vector{SVector{2,Float64}}(undef, N)
|
||||
|
||||
|
@ -78,8 +78,8 @@ function gen_rdf_graphics()
|
|||
setline(0.3)
|
||||
line(Point(0, 0), Point(Δr, 0), :stroke)
|
||||
|
||||
fontsize(4)
|
||||
text("r", Point(0.4 * Δr, 0.3 * Δr))
|
||||
fontsize(4.5)
|
||||
text("Δr", Point(0.44 * Δr, -0.05 * Δr))
|
||||
|
||||
finish()
|
||||
|
||||
|
|
Loading…
Reference in a new issue