Git Product home page Git Product logo

matplotlib-sixel's People

Contributors

riedel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

matplotlib-sixel's Issues

doesn't work with current libsixel

Hi sir,

It seems this module doesn't work with current libsixel anymore. I tested on iTerm2 which supports sixel.

>>> import matplotlib
>>> matplotlib.use('module://matplotlib-sixel')
>>> from pylab import *
>>> plt.plot(sin(arange(100) / 10))
[<matplotlib.lines.Line2D object at 0x11bc89df0>]
>>> show()

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/xiangpeng/venv/lib/python3.8/site-packages/matplotlib/pyplot.py", line 353, in show
    return _backend_mod.show(*args, **kwargs)
  File "/Users/xiangpeng/Downloads/matplotlib-sixel/matplotlib-sixel/sixel.py", line 73, in show
    display(figure_manager.canvas.figure)
  File "/Users/xiangpeng/Downloads/matplotlib-sixel/matplotlib-sixel/sixel.py", line 49, in display
    resize_fig(figure)
  File "/Users/xiangpeng/Downloads/matplotlib-sixel/matplotlib-sixel/sixel.py", line 36, in resize_fig
    pixel_factor = pixel_size / xterm_pixels()
  File "/Users/xiangpeng/Downloads/matplotlib-sixel/matplotlib-sixel/xterm.py", line 42, in xterm_pixels
    assert c == '\x1b'
AssertionError
^[[4;1053;2062t>>> ;1053;2062t
  File "<stdin>", line 1
    ;1053;2062t
    ^
SyntaxError: invalid syntax
>>> ;1053;2062t
  File "<stdin>", line 1
    ;1053;2062t
    ^
SyntaxError: invalid syntax

Screenshot 2021-10-02 at 4 43 57 PM

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.