Coder Social home page Coder Social logo

Comments (4)

AstroChuck avatar AstroChuck commented on May 26, 2024

I've done some more testing and this issue actually impacts all grain preview graphs any time the cleanup function is called (presumably when updating the preview widget).
This issue only occurs on my desktop computer, but crashes both OM 0.5.0 and my development environment. I suspect that my poor dependency hygiene is causing problems here and this is somehow tied to a new version of Matplotlib, although I can't confirm that yet.
Using the method suggested by Matplotlib documentation for interacting with the artist list fixes this problem. Old code included in comments.
for _ in range(0, self.numContours): self.plot.lines[0].remove() #Old Cleanup For Loop #for _ in range(0, self.numContours): #self.plot.lines.pop(0)

from openmotor.

Flavsditz avatar Flavsditz commented on May 26, 2024

I am not sure if this is still stopping you, but if it is the fix for me was:
On the gainPreviewGraph.py on the cleanup() method I simply substituted this line:

self.plot.lines.pop(0)

with this one:

self.plot.lines[0].remove()

That being said probably fixing the versions in the requirements.txt is a good idea to have more control over these breaking changes

from openmotor.

reilleya avatar reilleya commented on May 26, 2024

I have this fix and updated+fixed dependency versions on the pyqt6 branch. Want to try it out? I'll merge it if it installs/runs properly for someone else too.

from openmotor.

Flavsditz avatar Flavsditz commented on May 26, 2024

I have also pushed with my latest PR. Maybe if that one gets merged we are good on this front too.
But otherwise, do merge the pyqt6 branch and it is another step forward for the project 😃

from openmotor.

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.