Comments (11)
PyPlot.backend
gives "Qt4Agg".
from pyplot.jl.
Is this in IJulia, or in the terminal?
from pyplot.jl.
In the notebook. The plot actually does show up.
from pyplot.jl.
Weird, I can't reproduce on my Mac. What OS?
from pyplot.jl.
Ubuntu I believe.
from pyplot.jl.
Does it work if you do
using PyCall
pygui(:gtk)
using PyPlot
?
from pyplot.jl.
Yes! That gets rid of the empty windows.
from pyplot.jl.
(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.
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.
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.
@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)
- twinx() and fgcolor issue HOT 2
- PyPlot Error
- Using PyPlot on CI suddenly fails HOT 1
- No working GUI backend found for matplotlib HOT 5
- unrelated println statement leads to blank plot
- getp not defined? HOT 1
- The show() method doesn't seem to work. HOT 2
- Window requires focus before functions return HOT 4
- Using the backend :qt not working HOT 1
- using PyPlot hangs/kills julia 1.8.5 or 1.9.0 on MacOS HOT 4
- Unable to install PyPlot (ResolvePackageNotFound conda error) HOT 2
- PyPlot.jl as a dependency breaks package registration? HOT 4
- ResolvePackageNotFound error in Ubuntu/Linux HOT 3
- `using PyPlot` crashes package precompilation on Julia v1.10.0-beta1 HOT 4
- Need a new release (Julia 1.10 PkgEval) HOT 2
- Qt: Session management error on linux
- Pyplot crash on window HOT 8
- Displaying plots in vscode HOT 2
- violinplot not defined
- Problem in using PyPlot in Julia HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyplot.jl.