Skip to content

Commit

Permalink
distinguish points and intervals in plots
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Feb 16, 2024
1 parent 9c6f0a5 commit 1e28c91
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 58 deletions.
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

0 comments on commit 1e28c91

Please sign in to comment.