Giter Club home page Giter Club logo

Comments (3)

cgoliver avatar cgoliver commented on May 17, 2024

hi! i'm getting the same issue.

from itermplot.

Tiffany8 avatar Tiffany8 commented on May 17, 2024

Thanks for sharing this project @daleroberts !

I'm also getting the same error above when I run @edwinhu's example code in ptpython.

I have the following error when I run in bpython:

Traceback (most recent call last):
File "", line 1, in
plt.show()
File "/Users/tw/miniconda3/lib/python3.5/site-packages/matplotlib/pyplot.py", line 252, in show
return _show(*args, **kw)
File "/Users/tw/itermplot/itermplot.py", line 95, in show
figmanager.show()
File "/Users/tw/itermplot/itermplot.py", line 208, in show
imgcat(data.getbuffer())
File "/Users/tw/itermplot/itermplot.py", line 82, in imgcat
sys.stdout.buffer.write(buf)
AttributeError: 'FakeOutput' object has no attribute 'buffer'

and the code actually works when I run in the basic python terminal, though it'd be great if it worked with other python interpreters as the basic one is pretty limiting. Thanks!

from itermplot.

daleroberts avatar daleroberts commented on May 17, 2024

@edwinhu I've fixed the unpack bug by catching the exception and keeping the color "as is" if it can't parse it. Even though I couldn't reproduce the bug in matplotlib 1.5.3 with the code:

import matplotlib.pyplot as plt
plt.plot([1,2,3,4])
plt.ylabel('some numbers')
plt.show()

@Tiffany8 I'm going to look at the strange bpython bug now...

Thanks for pointing out these bugs :)

from itermplot.

Related Issues (20)

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.