Skip to content
Snippets Groups Projects
Verified Commit 3c9419c7 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Extend x-axis of default plot

parent c73cdf48
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ module MakieMRIBuilder ...@@ -2,7 +2,7 @@ module MakieMRIBuilder
using Makie using Makie
import MakieCore import MakieCore
import MRIBuilder.Plot: Plot_Sequence, SequenceDiagram, range_line, normalise import MRIBuilder.Plot: Plot_Sequence, SequenceDiagram, range_line, normalise
import MRIBuilder: BaseSequence, BaseBuildingBlock import MRIBuilder: BaseSequence, BaseBuildingBlock, duration
function Makie.plot!(scene:: Plot_Sequence) function Makie.plot!(scene:: Plot_Sequence)
kwargs = Dict([ kwargs = Dict([
...@@ -35,6 +35,7 @@ function Makie.plot!(scene:: Plot_Sequence) ...@@ -35,6 +35,7 @@ function Makie.plot!(scene:: Plot_Sequence)
current_y += (upper - lower) + 0.1 current_y += (upper - lower) + 0.1
end end
end end
Makie.lines!(scene, [-duration(sequence) / 10., 0], [current_y/2, current_y/2], color=(:red, 0.))
end end
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment