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
- Host: GitHub
- URL: https://github.com/jonathf/matplotlib-sixel
- Owner: jonathf
- License: bsd-3-clause
- Fork: true (koppa/matplotlib-sixel)
- Created: 2022-02-04T10:14:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-09T09:21:45.000Z (almost 3 years ago)
- Last Synced: 2025-11-20T13:06:45.562Z (7 months ago)
- Language: Python
- Size: 978 KB
- Stars: 6
- Watchers: 0
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
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.