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,
:histogram2d,
:heatmap,
:image,
:spy,
]
const _unicodeplots_style = [:auto, :solid]

View File

@ -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 = (;)