-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Description
Having trouble with using the Makie plot extensions.
I am unsure if this is an issue with YAXArrays, Makie or something else? (DimensionalData perhaps?)
These figures were being created fine before, with each x and y name being correctly displayed.
Setup for minimum example:
using GLMakie
using YAXArrays
data = Matrix(
[-0.00511588 -0.484493 0.465729
-0.598729 -0.484493 -0.433482
0.0877616 0.00859982 0.383126
0.03808 0.14629 0.196582
-0.17817 -0.484493 0.252583
0.0431728 -0.431208 0.460954
-0.0369392 -0.353446 0.277879
0.107947 -1.25138e-5 0.459413
0.211389 0.14629 0.390068
0.402262 0.47797 0.213664
0.0766013 0.188613 0.0751029]
)
props = Dict(
"x" => "x",
"y" => "y"
)As Symbol:
xs = [Symbol("x$i") for i in 1:11]
ys = [Symbol("x$i") for i in 1:3]
axlist = Tuple(
Dim{n}(v) for (n, v) in zip((:x, :y), (xs, ys))
)
d = YAXArray(
axlist, data, props
)
heatmap(d)
As string:
xs = ["x$i" for i in 1:11]
ys = ["x$i" for i in 1:3]
axlist = Tuple(
Dim{n}(v) for (n, v) in zip((:x, :y), (xs, ys))
)
d = YAXArray(
axlist, data, props
)
heatmap(d)
As numeric:
xs = collect(1:11)
ys = collect(1:3)
axlist = Tuple(
Dim{n}(v) for (n, v) in zip((:x, :y), (xs, ys))
)
d = YAXArray(
axlist, data, props
)
heatmap(d)
Metadata
Metadata
Assignees
Labels
No labels