Skip to content

Commit 1e28c91

Browse files
committed
distinguish points and intervals in plots
1 parent 9c6f0a5 commit 1e28c91

File tree

5 files changed

+296
-58
lines changed

5 files changed

+296
-58
lines changed

.gitignore

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,13 @@ docs/build
1818
docs/var
1919
deps/build.jl
2020
Manifest.toml
21+
<<<<<<< HEAD
2122
docs/.vitepress/dist
2223
docs/.vitepress/cache
2324
docs/src/.vitepress/dist
2425
docs/src/.vitepress/cache
25-
node_modules
26+
node_modules
27+
=======
28+
node_modules
29+
docs_site
30+
>>>>>>> ea9b0786 (distinguish points and intervals in plots)
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
using DimensionalData
2+
using DimensionalData: Metadata, NoMetadata, ForwardOrdered, ReverseOrdered, Unordered,
3+
Sampled, Categorical, NoLookup, Transformed,
4+
Regular, Irregular, Explicit, Points, Intervals, Start, Center, End
5+
6+
using GLMakie: GLMakie as Mke
7+
8+
A1intervals = rand(X(1.0:10.0; sampling=Intervals(Start())); name=:test)
9+
10+
Mke.plot(set(A1intervals, X=>Points()))
11+
Mke.plot(A1intervals)
12+
13+
A2intervals1 = rand(X(10:10:100; sampling=Intervals(Start())), Z(1:3))
14+
Mke.plot(A2intervals1)
15+
A2intervals2 = rand(X(10:10:100; sampling=Intervals(Start())), Z(1:3; sampling=Intervals(Start())))
16+
Mke.plot(A2intervals2)
17+
18+
A3intervals1 = rand(X(10:1:15; sampling=Intervals(Start())), Y(1:3), Dim{:C}(10:15))
19+
Mke.plot(A3intervals1; z=:C)
20+
# broken
21+
A3intervals2 = rand(X(10:1:15; sampling=Intervals(Start())), Y(1:3), Z(10:15; sampling=Intervals(Start())))
22+
Mke.plot(A3intervals2)
23+
A3intervals2a = rand(X(10:1:10; sampling=Intervals(Start())), Y(1:1; sampling=Intervals(Start())), Z(10:20))
24+
Mke.plot(A3intervals2a)
25+
26+
a = rand(2,2,2)

0 commit comments

Comments
 (0)