1
0
Fork 0
mirror of https://gitlab.rlp.net/mobitar/ReCo.jl.git synced 2024-09-19 19:01:17 +00:00

Fix label

This commit is contained in:
Mo8it 2022-01-25 05:23:26 +01:00
parent 64b48b2046
commit 0d8bf9e0b9

View file

@ -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()