Skip to content

koppa/matplotlib-sixel

Repository files navigation

Matplotlib-sixel backend

A matplotlib backend which outputs sixel graphics onto the terminal. The code is inspired by the ipython-notebook matplotlib backend.

TODO:

  • An Exception breaks the terminal
  • Support other terminals than xterm
  • Resize has still some problems. The figures are often too big for small windows

Dependencies

  • xterm with Sixel support configured
  • imagemagick (for converting the graphics)
  • matplotlib and numpy

Installation

python setup.py install 

Usage

import matplotlib matplotlib.use('module://matplotlib-sixel') from pylab import * plt.plot(sin(arange(100) / 10)) show() # --> now shows the plot inside the xterm window 

About

A sixel graphics backend for matplotlib

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages