Skip to content

Commit

Permalink
fixed internal drawing test for 3D cells
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Apr 27, 2023
1 parent ef59ce9 commit bcbf56e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/testing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ function draw_computing_cell(x, box::Box{UnitCellType,3}; parallel=true) where {
x_rotated = Ref(box.rotation) .* x
Main.scatter!(plt, Tuple.(wrap_to_first.(x_rotated, Ref(box.aligned_unit_cell.matrix))), label=:none, markeralpha=0.3)
lims = Vector{Float64}[]
xmin, xmax = box.computing_limits
xmin, xmax = cell_limits(box.aligned_unit_cell.matrix)
xmin = xmin .- box.cell_size
xmax = xmax .+ box.cell_size
Main.plot!(plt,
Expand All @@ -374,6 +374,9 @@ function draw_computing_cell(x, box::Box{UnitCellType,3}; parallel=true) where {
xticks=(round.(digits=3, xmin[1]:box.cell_size[1]:xmax[1])),
yticks=(round.(digits=3, xmin[2]:box.cell_size[2]:xmax[2])),
zticks=(round.(digits=3, xmin[3]:box.cell_size[3]:xmax[3])),
bgcolor=:black,
fgcolor=:wyhite,
size=(800,800),
)
return plt
end
Expand Down

0 comments on commit bcbf56e

Please sign in to comment.