Giter Club home page Giter Club logo

Comments (11)

JeffBezanson avatar JeffBezanson commented on September 20, 2024

PyPlot.backend gives "Qt4Agg".

from pyplot.jl.

stevengj avatar stevengj commented on September 20, 2024

Is this in IJulia, or in the terminal?

from pyplot.jl.

Keno avatar Keno commented on September 20, 2024

In the notebook. The plot actually does show up.

from pyplot.jl.

stevengj avatar stevengj commented on September 20, 2024

Weird, I can't reproduce on my Mac. What OS?

from pyplot.jl.

Keno avatar Keno commented on September 20, 2024

Ubuntu I believe.

from pyplot.jl.

stevengj avatar stevengj commented on September 20, 2024

Does it work if you do

using PyCall
pygui(:gtk)
using PyPlot

?

from pyplot.jl.

JeffBezanson avatar JeffBezanson commented on September 20, 2024

Yes! That gets rid of the empty windows.

from pyplot.jl.

stevengj avatar stevengj commented on September 20, 2024

(Maybe I should use a PYCALL_GUI environment variable so that you can save this preference.)

@fperez, what backend does IPython default to for matplotlib on Linux distros?

from pyplot.jl.

fperez avatar fperez commented on September 20, 2024

I don't recall out of the box... It used to be GTK, I think (as that was the first one @jdh2358 wrote). @mdboom, do you know if that has changed recently?

from pyplot.jl.

mdboom avatar mdboom commented on September 20, 2024

As of matplotlib 1.3.0, the default backend was changed to Qt4. More specifically, it sets the default backend to the first one that works in a list in this order:

    setupext.BackendMacOSX(),
    setupext.BackendQt4(),
    setupext.BackendGtk3Agg(),
    setupext.BackendGtk3Cairo(),
    setupext.BackendGtkAgg(),
    setupext.BackendTkAgg(),
    setupext.BackendWxAgg(),
    setupext.BackendGtk(),
    setupext.BackendAgg(),
    setupext.BackendCairo(),
    setupext.Windowing(),

from pyplot.jl.

stevengj avatar stevengj commented on September 20, 2024

@mdboom, is there something special you need to do to keep windows from popping up on Linux for inline plotting? We are initializing matplotlib with the Qt4Agg backend and just using switch_backend to switch to an Agg backend for inline plots, so that people can switch to Qt4 plotting at runtime if they wish. On MacOS and Windows, that seems to be enough to suppress plot windows.

(And why do you use Qt4 rather than Qt4Agg?)

from pyplot.jl.

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.