Coder Social home page Coder Social logo

documentation about pyro2 HOT 2 CLOSED

python-hydro avatar python-hydro commented on May 29, 2024
documentation

from pyro2.

Comments (2)

astroboylrx avatar astroboylrx commented on May 29, 2024

I'm using pyro2 with TkAgg backend. However, interactive plotting doesn't work. More specifically, plt.figure() successfully create a window, but nothing shows up in it, and then the window exits after the program ends. This issue happens on both Ubuntu 16.04 and Mac OS 10.11. With some googling, I put plt.pause(0.0001) after each sim.dovis() in pyro.py, which fixes the issue. But the official documentation of pause function does not give a reasonable explanation. Additionally, by using plt.pause(0.0001), I find the interactive plotting now even works with the "MacOSX" and "Qt5Agg" backends. I think this workaround might be useful to someone, so I comment here.

from pyro2.

zingale avatar zingale commented on May 29, 2024

indeed, I see this now, it seems to be related to matplotlib 1.5 -- I just upgraded and get that error. I'll add pauses

from pyro2.

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.