Skip to content

Commit 495ab9a

Browse files
committed
quasivector plot
1 parent 8ea2da1 commit 495ab9a

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

Project.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,19 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1313
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1414

1515
[weakdeps]
16+
RecipesBase = "3cdcf5f2-1ef4-517c-9805-6587b60abb01"
1617
SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1718

1819
[extensions]
20+
QuasiArraysRecipesBaseExt = "RecipesBase"
1921
QuasiArraysSparseArraysExt = "SparseArrays"
2022

21-
2223
[compat]
2324
ArrayLayouts = "1"
2425
DomainSets = "0.7.6"
2526
FillArrays = "1"
2627
LazyArrays = "1.2, 2"
28+
RecipesBase = "1.0"
2729
StaticArrays = "1"
2830
julia = "1.6"
2931

ext/QuasiArraysRecipesBaseExt.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module QuasiArraysRecipesBaseExt
2+
3+
using RecipesBase, QuasiArrays
4+
5+
@recipe f(v::QuasiVector) = v.axes[1], v.parent
6+
7+
end # module

src/QuasiArrays.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,5 +130,4 @@ if !isdefined(Base, :get_extension)
130130
include("../ext/QuasiArraysSparseArraysExt.jl")
131131
end
132132

133-
134133
end

0 commit comments

Comments
 (0)