Code Monkey home page Code Monkey logo

Comments (4)

okayy84 avatar okayy84 commented on June 10, 2024

Hello, I've the same issue... Please tell me that you find a solution ?

I find nothing on google it's insane

from missingno.

okayy84 avatar okayy84 commented on June 10, 2024

In the original missingno.py i deleted the insade loop (line 350 and i just replace by

for text in ax0.texts:
t = text.get_text()
print(t)

and the result is in the picture result.png :

Capture d’écran de 2024-04-03 13-24-29

It's seem that there's a problem in this library ! (i use the missingno 0.4.2 i can't use the latest version cause it's a pc for my job.

from missingno.

WillMc93 avatar WillMc93 commented on June 10, 2024

Okay, so the simplest way I found around this was to modify the file in my local environment to just check for the string '--' in that bit of the code.

For the contributers to the package, all I did was replace the for loop at line 397 of missingno.py with:

for text in ax0.texts:
    if text.get_text() != '--':
        t = float(text.get_text())
    else:
        continue
    
    if 0.95 <= t < 1:
        text.set_text('<1')
    elif -1 < t <= -0.95:
        text.set_text('>-1')
    elif t == 1:
        text.set_text('1')
    elif t == -1:
        text.set_text('-1')
    elif -0.05 < t < 0.05:
        text.set_text('')
    else:
        text.set_text(round(t, 1))

    return ax0

I don't feel I know enough about what's going on in the package to create a pull request for this change, but I don't see where the problem would arise TBH.

from missingno.

WillMc93 avatar WillMc93 commented on June 10, 2024

I changed my mind and made a pull request.

from missingno.

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.