Live data from Hacker News

Unicode-based scientific plotting for working in the terminal

github.com

21–30 of 37 posts

Re: Unicode-based scientific plotting for working in the terminal

#21

Every time I see these things, I wish Sixel graphics[0] were better supported, or else some more modern alternative. Being able to use GNUPlot with Sixel output or tools like lsix[1] is really cool! I think if support / libraries / knowledge about Sixels was more widespread, we would see some really nifty terminal applications cropping up. 0 - https://saitoha.github.io/libsixel/ 1 - https://github.com/hackerb9/lsix

This looks pretty cool. Why isn't this more popular?

Re: Unicode-based scientific plotting for working in the terminal

#22
post #15

This is great! Anyone know of anything like this for Python or R?

I guess plotille ( https://github.com/tammoippen/plotille ) is the closest match for python. And maybe termgraph ( https://github.com/mkaz/termgraph ) is kind of similar.

It's not unicode, but there's also sixelplot [1] which allows matplotlib plotting in a terminal using sixel. The underlying pysixel library [2] unfortunately doesn't support Python 3.7+ however.

[1] https://github.com/kktk-KO/sixelplot

[2] https://github.com/saitoha/PySixel

Re: Unicode-based scientific plotting for working in the terminal

#23

This is great! Anyone know of anything like this for Python or R?

I also wrote a more generic Python terminal plotting library: https://github.com/dheera/python-termgraphics

For robotics people -- the above is used in rosshow: http://github.com/dheera/rosshow

Re: Unicode-based scientific plotting for working in the terminal

#24

Every time I see these things, I wish Sixel graphics[0] were better supported, or else some more modern alternative. Being able to use GNUPlot with Sixel output or tools like lsix[1] is really cool! I think if support / libraries / knowledge about Sixels was more widespread, we would see some really nifty terminal applications cropping up. 0 - https://saitoha.github.io/libsixel/ 1 - https://github.com/hackerb9/lsix

This looks pretty cool. Why isn't this more popular?

Most of the "default" terminal apps (e.g. gnome-terminal) don't support sixel.

Re: Unicode-based scientific plotting for working in the terminal

#25

Every time I see these things, I wish Sixel graphics[0] were better supported, or else some more modern alternative. Being able to use GNUPlot with Sixel output or tools like lsix[1] is really cool! I think if support / libraries / knowledge about Sixels was more widespread, we would see some really nifty terminal applications cropping up. 0 - https://saitoha.github.io/libsixel/ 1 - https://github.com/hackerb9/lsix

I wrote a generic terminal graphics library that uses Unicode Braille with the option of ASCII fallback: https://github.com/dheera/python-termgraphics

I was thinking about adding sixel support to this to have a universal graphics library that intelligently uses the best method available., but never got around to it yet.

Re: Unicode-based scientific plotting for working in the terminal

#26

Every time I see these things, I wish Sixel graphics[0] were better supported, or else some more modern alternative. Being able to use GNUPlot with Sixel output or tools like lsix[1] is really cool! I think if support / libraries / knowledge about Sixels was more widespread, we would see some really nifty terminal applications cropping up. 0 - https://saitoha.github.io/libsixel/ 1 - https://github.com/hackerb9/lsix

What terminal do I need to see these images. I am confused.

Re: Unicode-based scientific plotting for working in the terminal

#27

This is great! Anyone know of anything like this for Python or R?

I made a dead simple, somehow surprisingly useful one for python back in 2014. I still use it for quick investigations all the time.

hipsterplot: https://github.com/imh/hipsterplot

Re: Unicode-based scientific plotting for working in the terminal

#28
post #26

Every time I see these things, I wish Sixel graphics[0] were better supported, or else some more modern alternative. Being able to use GNUPlot with Sixel output or tools like lsix[1] is really cool! I think if support / libraries / knowledge about Sixels was more widespread, we would see some really nifty terminal applications cropping up. 0 - https://saitoha.github.io/libsixel/ 1 - https://github.com/hackerb9/lsix

What terminal do I need to see these images. I am confused.

The libsixel website lists several that support it. Xterm can support this in VT430 emulation mode, but support needs to be enabled at compile time.

Re: Unicode-based scientific plotting for working in the terminal

#29

As somebody who grew up during the semi-graphic era, it makes me sad that we still use a 30 year old standard for terminals and cannot do direct plot in the main terminal (as opposed to the Tektronix separate window).

I was thinking something similar. Looking at this makes me wish a terminal app could just embed a PNG or whatever in its output.

I heard they have something similar at Cern and it also has clickable links and universal resource locators.

Re: Unicode-based scientific plotting for working in the terminal

#30
post #22
post #15

Earlier quoted context omitted.

I guess plotille ( https://github.com/tammoippen/plotille ) is the closest match for python. And maybe termgraph ( https://github.com/mkaz/termgraph ) is kind of similar.

It's not unicode, but there's also sixelplot [1] which allows matplotlib plotting in a terminal using sixel. The underlying pysixel library [2] unfortunately doesn't support Python 3.7+ however. [1] https://github.com/kktk-KO/sixelplot [2] https://github.com/saitoha/PySixel

There is a PR that fixes it for 3.7, it needs review: https://github.com/saitoha/PySixel/pull/5
Post reply on HN