Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Experimental Physics
Quantum Circuits
python-repo
Commits
e5bf5272
Commit
e5bf5272
authored
Nov 16, 2021
by
Teresa Hönigl-Decrinis
Browse files
Update data_grid.py to add colorbar to plot()
parent
76d193db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
DataModule/data_grid.py
DataModule/data_grid.py
+2
-1
No files found.
DataModule/data_grid.py
View file @
e5bf5272
...
@@ -270,7 +270,8 @@ class data_grid(data_module_base):
...
@@ -270,7 +270,8 @@ class data_grid(data_module_base):
hv
.
opts
.
defaults
(
hv
.
opts
.
Image
(
hv
.
opts
.
defaults
(
hv
.
opts
.
Image
(
width
=
width
,
width
=
width
,
height
=
height
,
height
=
height
,
cmap
=
cmap
cmap
=
cmap
,
colorbar
=
True
))
))
# Rename z values (to prevent bug in holoviews)
# Rename z values (to prevent bug in holoviews)
df
=
self
.
df
[
self
.
x_min
:
self
.
x_max
,
self
.
y_min
:
self
.
y_max
].
rename
(
'z'
)
df
=
self
.
df
[
self
.
x_min
:
self
.
x_max
,
self
.
y_min
:
self
.
y_max
].
rename
(
'z'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment