Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
MRIBuilder.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
MRIBuilder.jl
Commits
3c9419c7
Verified
Commit
3c9419c7
authored
1 year ago
by
Michiel Cottaar
Browse files
Options
Downloads
Patches
Plain Diff
Extend x-axis of default plot
parent
c73cdf48
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ext/MakieMRIBuilder/MakieMRIBuilder.jl
+2
-1
2 additions, 1 deletion
ext/MakieMRIBuilder/MakieMRIBuilder.jl
with
2 additions
and
1 deletion
ext/MakieMRIBuilder/MakieMRIBuilder.jl
+
2
−
1
View file @
3c9419c7
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment