An open API service indexing awesome lists of open source software.

https://github.com/jonathf/matplotlib-sixel

A sixel graphics backend for matplotlib
https://github.com/jonathf/matplotlib-sixel

Last synced: 5 months ago
JSON representation

A sixel graphics backend for matplotlib

Awesome Lists containing this project

README

          

Matplotlib-sixel backend
========================

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

.. image:: ./demo.png
:width: 100 %

Dependencies
------------

* terminal with Sixel support like `xterm `_, `iterm `_ and `mlterm `_.
* `imagemagick `_ for converting the graphics.
* `matplotlib `_.

Installation
-------------

::

pip install matplotlib-sixel

Configuration
-------------

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 <./matplotlibrc>`_ and make it your own.