A matplotlib backend which outputs sixel graphics onto the terminal. The code is inspired by the ipython-notebook matplotlib backend.
- terminal with Sixel support like xterm, iterm and mlterm.
- imagemagick for converting the graphics.
- matplotlib.
pip install matplotlib-sixel
the backend has to be altered. Either in your python session with:
import matplotlib matplotlib.use('module://sixel')
or in your matplotlibrc
file:
backend: module://sixel
To get the colors in the demo above, you can copy this matplotlibrc and make it your own.