From c84a9c64c0a99f0beea4d1567b086b081bc53e31 Mon Sep 17 00:00:00 2001 From: Lazaro Alonso Date: Tue, 13 Feb 2024 20:26:31 +0100 Subject: [PATCH] wip --- .gitignore | 4 +++- docs/crash/course/test_makie_plots.jl | 26 ++++++++++++++++++++++++++ 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 docs/crash/course/test_makie_plots.jl diff --git a/.gitignore b/.gitignore index 03d3e0a82..9091156be 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,6 @@ docs/site docs/build docs/var deps/build.jl -Manifest.toml \ No newline at end of file +Manifest.toml +node_modules +docs_site diff --git a/docs/crash/course/test_makie_plots.jl b/docs/crash/course/test_makie_plots.jl new file mode 100644 index 000000000..eb7ab5224 --- /dev/null +++ b/docs/crash/course/test_makie_plots.jl @@ -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) \ No newline at end of file