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
4c3fc0ba
Commit
4c3fc0ba
authored
Sep 16, 2021
by
Christian Schneider
Browse files
adapted to new holoviews syntax
parent
9bd0af38
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
DataModule/data_grid.py
DataModule/data_grid.py
+5
-2
No files found.
DataModule/data_grid.py
View file @
4c3fc0ba
...
...
@@ -267,8 +267,11 @@ class data_grid(data_module_base):
y_vals
=
self
.
df
.
dims
[
1
]
else
:
y_vals
=
name_y
hv
.
opts
({
mode
:
{
'plot'
:
{
'width'
:
width
,
'height'
:
height
},
'style'
:
{
'cmap'
:
cmap
}}})
hv
.
opts
.
defaults
(
hv
.
opts
.
Image
(
width
=
width
,
height
=
height
,
cmap
=
cmap
))
# 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'
)
# Create dataset
...
...
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