Skip to content

Commit

Permalink
🤖 Format .jl files (#26)
Browse files Browse the repository at this point in the history
Co-authored-by: juliohm <3345261+juliohm@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and juliohm authored Oct 7, 2024
1 parent 3cfbbb1 commit 8feabb0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ext/transioplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
# Licensed under the MIT License. See LICENSE in the project root.
# ------------------------------------------------------------------

function transioplot(t::Transiogram;
function transioplot(
t::Transiogram;
# common transiogram options
color=:slategray,
size=1.5,
Expand Down Expand Up @@ -31,12 +32,12 @@ function transioplot(t::Transiogram;
lᵢ, lⱼ = l[i], l[j]
ax = Makie.Axis(fig[i, j])
ys = getindex.(y, i, j)
Makie.lines!(ax, x, ys, color=color, linewidth=size, label = "$lᵢ$lⱼ")
Makie.lines!(ax, x, ys, color=color, linewidth=size, label="$lᵢ$lⱼ")
if i == j
# show effective range
Makie.lines!(ax, [zero(H), r[i]], [1.0, 0.0], color=color, linewidth=size, linestyle=:dash)
end
Makie.axislegend(position = i == j ? :rt : :rb)
Makie.axislegend(position=i == j ? :rt : :rb)
end
fig
end

0 comments on commit 8feabb0

Please sign in to comment.