Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@ docs/build
docs/var
deps/build.jl
Manifest.toml
<<<<<<< HEAD
docs/.vitepress/dist
docs/.vitepress/cache
docs/src/.vitepress/dist
docs/src/.vitepress/cache
node_modules
node_modules
=======
node_modules
docs_site
>>>>>>> ea9b0786 (distinguish points and intervals in plots)
26 changes: 26 additions & 0 deletions docs/crash/course/test_makie_plots.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using DimensionalData
using DimensionalData: Metadata, NoMetadata, ForwardOrdered, ReverseOrdered, Unordered,
Sampled, Categorical, NoLookup, Transformed,
Regular, Irregular, Explicit, Points, Intervals, Start, Center, End

using GLMakie: GLMakie as Mke

A1intervals = rand(X(1.0:10.0; sampling=Intervals(Start())); name=:test)

Mke.plot(set(A1intervals, X=>Points()))
Mke.plot(A1intervals)

A2intervals1 = rand(X(10:10:100; sampling=Intervals(Start())), Z(1:3))
Mke.plot(A2intervals1)
A2intervals2 = rand(X(10:10:100; sampling=Intervals(Start())), Z(1:3; sampling=Intervals(Start())))
Mke.plot(A2intervals2)

A3intervals1 = rand(X(10:1:15; sampling=Intervals(Start())), Y(1:3), Dim{:C}(10:15))
Mke.plot(A3intervals1; z=:C)
# broken
A3intervals2 = rand(X(10:1:15; sampling=Intervals(Start())), Y(1:3), Z(10:15; sampling=Intervals(Start())))
Mke.plot(A3intervals2)
A3intervals2a = rand(X(10:1:10; sampling=Intervals(Start())), Y(1:1; sampling=Intervals(Start())), Z(10:20))
Mke.plot(A3intervals2a)

a = rand(2,2,2)
Loading