Skip to content

Commit e81a4b7

Browse files
authored
Support itransforms in plotting (#129)
* Update plotting.jl * v0.10.2
1 parent f456007 commit e81a4b7

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "ContinuumArrays"
22
uuid = "7ae1f121-cc2c-504b-ac30-9b923412ae5c"
3-
version = "0.10.1"
3+
version = "0.10.2"
44

55
[deps]
66
ArrayLayouts = "4c555306-a7a7-4459-81d9-ec55ddd5c99a"

src/plotting.jl

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ plotgrid(g) = _plotgrid(MemoryLayout(g), g)
1818
_split_svec(x) = (x,)
1919
_split_svec(x::AbstractArray{<:StaticVector{2}}) = (map(first,x), map(last,x))
2020

21-
@recipe function f(g::AbstractQuasiVector)
22-
x = plotgrid(g)
23-
tuple(_split_svec(x)...,g[x])
24-
end
21+
plotvalues(g::AbstractQuasiVector, x) = g[x]
22+
plotvalues(g::AbstractQuasiMatrix, x) = g[x,:]
2523

26-
@recipe function f(g::AbstractQuasiMatrix)
24+
@recipe function f(g::AbstractQuasiArray)
2725
x = plotgrid(g)
28-
tuple(_split_svec(x)...,g[x,:])
29-
end
26+
tuple(_split_svec(x)..., plotvalues(g,x))
27+
end

0 commit comments

Comments
 (0)