Skip to content

Commit

Permalink
UnicodePlots: support images
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Dec 18, 2021
1 parent f784010 commit 9ff65b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/backends.jl
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,7 @@ const _unicodeplots_seriestype = [
:shape,
:histogram2d,
:heatmap,
:image,
:spy,
]
const _unicodeplots_style = [:auto, :solid]
Expand Down
2 changes: 2 additions & 0 deletions src/backends/unicodeplots.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (;)
Expand Down

0 comments on commit 9ff65b4

Please sign in to comment.