From 9ff65b400356e6194855c8f0ee5d2a79691f54a1 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Sat, 18 Dec 2021 23:05:07 +0100 Subject: [PATCH] UnicodePlots: support images --- src/backends.jl | 1 + src/backends/unicodeplots.jl | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/backends.jl b/src/backends.jl index 42349caf..f53edb1c 100644 --- a/src/backends.jl +++ b/src/backends.jl @@ -936,6 +936,7 @@ const _unicodeplots_seriestype = [ :shape, :histogram2d, :heatmap, + :image, :spy, ] const _unicodeplots_style = [:auto, :solid] diff --git a/src/backends/unicodeplots.jl b/src/backends/unicodeplots.jl index 0c4d6dc1..b7b794d3 100644 --- a/src/backends/unicodeplots.jl +++ b/src/backends/unicodeplots.jl @@ -113,6 +113,8 @@ function addUnicodeSeries!( ) elseif st == :spy return UnicodePlots.spy(series[:z].surf; kw...) + elseif st == :image + return UnicodePlots.imshow(series[:z].surf; kw...) end series_kw = (;)