Live data from Hacker News

Unicode-based scientific plotting for working in the terminal

github.com

31–37 of 37 posts

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

#32
post #2

I recently found out that XTerm supports sixels natively if started with the "-ti 340" option. For example gnuplot can make use of that feature using the command "set terminal sixlegd". It turns out because of the way sixels are encoded (six vertical pixels in a row using bitplanes) it packs better than png when used in conjunction with the bzip2 packer. Every image can simply be encoded to sixel with imagemagick usi…

I used your ImageMagick command, but the resulting image is very bright and almost invisible. I tried disabling Unicode using +u8, but that didn't work. I tried mlterm, that worked.

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

#33
post #9
post #2

I recently found out that XTerm supports sixels natively if started with the "-ti 340" option. For example gnuplot can make use of that feature using the command "set terminal sixlegd". It turns out because of the way sixels are encoded (six vertical pixels in a row using bitplanes) it packs better than png when used in conjunction with the bzip2 packer. Every image can simply be encoded to sixel with imagemagick usi…

Sixels will be added to libvte (gnome-terminal): https://gitlab.gnome.org/GNOME/vte/-/issues/254

Great news! I think we may finally see a resurgence. It will be well supported on mainstream Linux, and given that the web is getting so heavy-weight, this will offer a solid alternative for graphics that you can rely on. Libvte is very popular.

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

#35

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

Honest question: Why would I ever want/need to plot data in the R console, and not in a R graphics window?

the "work" you are doing is via ssh into a big box behind gateway/jumphost with peculiar limitations on ports & access from the data gravity well which is your bog standard asymmetric home isp ; annoying but you need to do anyway because the remote hardware has more bandwidth, memory, cores and storage than a stack of laptops taller than you... I could go on but lets just acknowledge not every task fits in a prepackaged shiny solution.

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

#36
This is awesome. When I build my spaceship, it's going to have a command line interface and I'll use this to display pertinent spaceship-data, such as gravitational pull of nearby black holes, tachyon levels, and warp signatures etc.

Can't safely use a touchscreen or mouse when all hell breaks loose in space!

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

#37
post #2

I recently found out that XTerm supports sixels natively if started with the "-ti 340" option. For example gnuplot can make use of that feature using the command "set terminal sixlegd". It turns out because of the way sixels are encoded (six vertical pixels in a row using bitplanes) it packs better than png when used in conjunction with the bzip2 packer. Every image can simply be encoded to sixel with imagemagick usi…

I used your ImageMagick command, but the resulting image is very bright and almost invisible. I tried disabling Unicode using +u8, but that didn't work. I tried mlterm, that worked.

I forgot to tell that you have to enable 256 colors as well. Put this into your .Xresources:

    XTerm.*.decTerminalID: vt340
    XTerm.*.numColorRegisters: 256
And refresh with

    xrdb -merge $HOME/.Xresources
It should work now.
Post reply on HN