New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plotting generates a blank window #124
Comments
What's the output of the GR |
GR.version() returns "0.31.0". A further information: I experienced the problem both using GR directly and as a backend of Plots (while Plots+pyplot is working as expected). |
Is the "blank" window a QtTerm? @FlorianRhiem : Can you reproduce this behaviour? In any case, could please you try to: ENV["GRDIR"]=""
Pkg.build("GR") |
The window is named GKS QtTerm.
nothing changed (I closed and reopened the REPL and tried to plot something). |
... but you can create figures etc, right? savefig("hist.pdf") |
Yes, savefig properly generates files (with graph drawn in them). |
Also, if I use GR within the Jupyter notebook the plot is correctly displayed. |
I did some more checking. The problem seems related to tiling window managers (dwm, i3): the window is blank if it is opened in tiled mode (and after that no window reshaping or making it float can make it usable for plotting). Instead, if the window is opened as a floating window it properly display the graph (and if I move to tiling mode it keeps working). |
Thanks for your hints. I will check this next week when I have access to a Debian machine - I'm currently on a conference. |
Same problem with Win10, Atom 1.28.2, GR v. 0.31.0 and Julia 0.6.3, everything run properly, but no plotting in Atom Plots window. Was good week ago. Seems like something changed with latest atom releases, but i'm not sure because latest atom patch changed nothing about plotting at all. |
@dav2017 : unfortunately, I don't have access to a Debian box with a tiling WM. Will have to setup a VM for it ... |
Well, I tried all rebuilds etc. Installed julia 0.6.4. All these methods didn't help. Although, for now I have error from issue nearby: "GKS: svgplugin.dll: can't load library, error 126 (0x7e)" and previous solution does not help. |
https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/25 could this be related? read the last part of the discussion |
I'm the one who posted that question, and I'm also on a tiling WM (i3wm) on Ubuntu 17.10. I will try to run it using GNOME and see if it works there. ==EDIT== |
Same problem here with i3wm |
For i3wm (and dwm) a work-around is to open GR plot windows in floating mode. You can edit the i3 "config" file to automatically open these windows as floating. Add this line to the config file (which in Debian is in ~/.config/i3/): |
The The With GR.jl: If the floating GR window is sent to the tiled layer, the plot resizes correctly. However, new plots in the tiled window are the size of the original floating window and the remaining part of the tiled window is not redrawn. Also
|
I am having the same problem on a Mac with Julia 1.1. Everything was fine until I tried to use PlotlyJS. |
I have no idea why a PlotlyJS installation should affect GR. using GR
histogram(randn(1000)) are no longer working after you added PlotlyJS? |
I did a reinstall from scratch and the problem went away. |
I'm still with this problem on Mac OS. I rebuilt GR several times. thanks for any help!
|
Something changed in the past weeks. When I plot data, now I get a blank window opens displaying no plot (but no error at REPL prompt). I tried different plot commands (plot, histogram), eg.:
I am running GR v. 0.31.0 and Julia v. 0.6.3 on Debian GNU/Linux.
The text was updated successfully, but these errors were encountered: