Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qim3d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QIM
Tools
qim3d
Merge requests
!124
Viz add colorbar
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
Viz add colorbar
viz-add-colorbar
into
main
Overview
0
Commits
6
Pipelines
0
Changes
1
Merged
Viz add colorbar
s214743
requested to merge
viz-add-colorbar
into
main
10 months ago
Overview
0
Commits
6
Pipelines
0
Changes
1
https://www.notion.so/qim-dtu/Add-colorbar-to-vizualisation-tools-a1b4cb67bd4a4de39a7ac40bf5d35fd5
0
0
Merge request reports
Viewing commit
37ec691e
Prev
Next
Show latest version
1 file
+
1
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
37ec691e
moved cbar to top right corner in the fig grid
· 37ec691e
David Johansen
authored
10 months ago
qim3d/viz/explore.py
+
1
−
1
View file @ 37ec691e
Edit in single-file editor
Open in Web IDE
Show full file
@@ -186,7 +186,7 @@ def slices(
if
cbar
:
norm
=
matplotlib
.
colors
.
Normalize
(
vmin
=
vmin
,
vmax
=
vmax
,
clip
=
True
)
mappable
=
matplotlib
.
cm
.
ScalarMappable
(
norm
=
norm
,
cmap
=
cmap
)
fig
.
colorbar
(
mappable
=
mappable
,
ax
=
axs
,
orientation
=
'
vertical
'
)
fig
.
colorbar
(
mappable
=
mappable
,
ax
=
np
.
atleast_1d
(
axs
[
0
])[
-
1
]
,
orientation
=
'
vertical
'
)
if
show
:
plt
.
show
()
Loading