UnicodePlots: support images

This commit is contained in:
t-bltg 2021-12-18 23:05:07 +01:00
parent f784010c29
commit 9ff65b4003
2 changed files with 3 additions and 0 deletions

View File

@ -936,6 +936,7 @@ const _unicodeplots_seriestype = [
:shape, :shape,
:histogram2d, :histogram2d,
:heatmap, :heatmap,
:image,
:spy, :spy,
] ]
const _unicodeplots_style = [:auto, :solid] const _unicodeplots_style = [:auto, :solid]

View File

@ -113,6 +113,8 @@ function addUnicodeSeries!(
) )
elseif st == :spy elseif st == :spy
return UnicodePlots.spy(series[:z].surf; kw...) return UnicodePlots.spy(series[:z].surf; kw...)
elseif st == :image
return UnicodePlots.imshow(series[:z].surf; kw...)
end end
series_kw = (;) series_kw = (;)