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
|
using ReCo: ReCo
|
||||||
|
|
||||||
function gen_rdf_graphics()
|
function gen_rdf_graphics()
|
||||||
Random.seed!(42)
|
Random.seed!(1)
|
||||||
|
|
||||||
box_length = 100
|
box_length = 100
|
||||||
box_height = 100
|
box_height = 100
|
||||||
|
@ -16,8 +16,8 @@ function gen_rdf_graphics()
|
||||||
Drawing(box_length, box_height, "$graphics_export_dir/rdf_shells.pdf")
|
Drawing(box_length, box_height, "$graphics_export_dir/rdf_shells.pdf")
|
||||||
origin()
|
origin()
|
||||||
|
|
||||||
particle_radius = 5
|
particle_radius = 6
|
||||||
Δr = 3 * particle_radius
|
Δr = 2.4 * particle_radius
|
||||||
|
|
||||||
setcolor("blue")
|
setcolor("blue")
|
||||||
circle(Point(0, 0), particle_radius, :fill)
|
circle(Point(0, 0), particle_radius, :fill)
|
||||||
|
@ -25,8 +25,8 @@ function gen_rdf_graphics()
|
||||||
N = 50
|
N = 50
|
||||||
twice_max_particle_coordinate = box_length
|
twice_max_particle_coordinate = box_length
|
||||||
|
|
||||||
selected_shell_ind = 2
|
selected_shell_ind = 3
|
||||||
selected_lower_radius = selected_shell_ind * Δr
|
selected_lower_radius = (selected_shell_ind - 1) * Δr
|
||||||
|
|
||||||
particle_cs = Vector{SVector{2,Float64}}(undef, N)
|
particle_cs = Vector{SVector{2,Float64}}(undef, N)
|
||||||
|
|
||||||
|
@ -78,8 +78,8 @@ function gen_rdf_graphics()
|
||||||
setline(0.3)
|
setline(0.3)
|
||||||
line(Point(0, 0), Point(Δr, 0), :stroke)
|
line(Point(0, 0), Point(Δr, 0), :stroke)
|
||||||
|
|
||||||
fontsize(4)
|
fontsize(4.5)
|
||||||
text("r", Point(0.4 * Δr, 0.3 * Δr))
|
text("Δr", Point(0.44 * Δr, -0.05 * Δr))
|
||||||
|
|
||||||
finish()
|
finish()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue