red-data-tools / unicode_plot.rb

Plot your data by Unicode characters
MIT License
246 stars 12 forks source link

Add heatmap support #29

Open mrkn opened 4 years ago

mrkn commented 4 years ago

We can support heatmap as UnicodePlots.jl did at https://github.com/Evizero/UnicodePlots.jl/pull/88

nanobowers commented 3 years ago

Hello @mrkn , I think adding this may require a dependency on another Gem such as https://github.com/janlelis/paint to be able to support 24-bit color in the terminal. Is it acceptable to add this dependency to support the heatmap?

mrkn commented 3 years ago

I want to investigate the library and consider what should I do.

mrkn commented 3 years ago

We need to use https://github.com/red-data-tools/red-colors and https://github.com/red-data-tools/red-palette to implement colormap used in heatmap because this library is a backend of https://github.com/red-data-tools/charty.

nanobowers commented 3 years ago

@mrkn I am working on this and have made some progress getting simple plots to display. There is a dependency on #34, as it requires at least 256 color support for this feature.