From 729c1486626da623628d3dd3edf3b0dd42484c6c Mon Sep 17 00:00:00 2001 From: Patrick Jaap Date: Thu, 30 Apr 2026 11:13:16 +0200 Subject: [PATCH 1/3] UnicodePlots: display multiple plots even if Term is not present --- ext/GridVisualizeUnicodePlotsExt.jl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ext/GridVisualizeUnicodePlotsExt.jl b/ext/GridVisualizeUnicodePlotsExt.jl index 8311b9dd..81344f48 100644 --- a/ext/GridVisualizeUnicodePlotsExt.jl +++ b/ext/GridVisualizeUnicodePlotsExt.jl @@ -1,6 +1,6 @@ """ module GridVisualizeUnicodePlotsExt - + Extension module for UnicodePlots.jl """ module GridVisualizeUnicodePlotsExt @@ -24,7 +24,12 @@ function reveal(p::GridVisualizer, TP::Type{UnicodePlotsType}) display(subplots[1][:figure]) else if :Term ∉ Symbol.(Base.loaded_modules_array()) - @warn "A GridVisualizer with multiple UnicodePlots requires 'Term.jl' to be loaded: add Term.jl to your environment." + @warn "A GridVisualizer with multiple UnicodePlots can only respect the desired layout if 'Term.jl' is loaded: add Term.jl to your environment and use it." + + # plot figures one by one + for subplot in subplots + haskey(subplot, :figure) && display(subplot[:figure]) + end else # set missing figures for subplot in subplots From 2ca7143056547cab7d8b5f110d999a5dab620494 Mon Sep 17 00:00:00 2001 From: Patrick Jaap Date: Thu, 30 Apr 2026 11:13:52 +0200 Subject: [PATCH 2/3] Allow single indexing for GridVisualizer --- src/dispatch.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dispatch.jl b/src/dispatch.jl index 9d5b9e9d..ddeb86de 100644 --- a/src/dispatch.jl +++ b/src/dispatch.jl @@ -314,7 +314,7 @@ $(SIGNATURES) Return a SubVisualizer """ -Base.getindex(p::GridVisualizer, i, j) = p.subplots[i, j] +Base.getindex(p::GridVisualizer, i...) = p.subplots[i...] """ $(SIGNATURES) From 2a13636bc4427256a2cc4799229de4b4023abc3f Mon Sep 17 00:00:00 2001 From: Patrick Jaap Date: Thu, 30 Apr 2026 11:14:07 +0200 Subject: [PATCH 3/3] Version Bump + CHANGELOG --- CHANGELOG.md | 4 ++++ Project.toml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 73098979..bcbdb3b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## [1.20.0] - 2026-04-30 +- a `GridVisualizer` can now be indexed with a single index +- `UnicodePlots`: multiple plots are now displayed even without `Term` loaded, but only one by one + ## [1.19.1] - 2026-04-27 - several small fixes in `UnicodePlots` extension. - fix in slice plotting: use `simplexgrid` constructor for the resulting grid to ensure a consistent grid. diff --git a/Project.toml b/Project.toml index 327f5947..3d63191c 100644 --- a/Project.toml +++ b/Project.toml @@ -1,6 +1,6 @@ name = "GridVisualize" uuid = "5eed8a63-0fb0-45eb-886d-8d5a387d12b8" -version = "1.19.2" +version = "1.20.0" authors = ["Juergen Fuhrmann ", "Patrick Jaap "] [deps]