These are chat archives for jheinen/GR.jl

20th
Jul 2016
Christopher Rackauckas
@ChrisRackauckas
Jul 20 2016 07:38
@jheinen @tbreloff When you run GR with Plots.jl and close the window (in Juno), you can't get that window back open without restarting Julia.
Christopher Rackauckas
@ChrisRackauckas
Jul 20 2016 07:44
I think it's a GR issue since I'm not having it with other backends. Someone else on StackExchange was having the same issue, so I don't think it's just Julia v0.5 on Windows, but it does occur there.
Tom Breloff
@tbreloff
Jul 20 2016 15:31
@jheinen is there any way to process mouse events for the GUI window opened by GR? I'd like to implement simple zoom/pan
Josef Heinen
@jheinen
Jul 20 2016 16:16
@tbreloff , Right now, there is only synchronous mouse/pointer handling in the "default" workstations types (X11, CoreGraphics, GDI). The GUI drivers (Qt, wx, Gtk) support asynchronous events - but for those drivers, GR can "only" be embedded, so you need an application (or a process) starting the main loop. We have already started to develop such an application for Qt5 (QtTerm), which can then be used on "all" platforms - but these things are in a early state ...
Tom Breloff
@tbreloff
Jul 20 2016 16:17
how could I hook into the synchronous handles?
or are you saying that there's no way to hook in?
Josef Heinen
@jheinen
Jul 20 2016 16:19
@tbreloff , those function are provided by the underlying GKS, which (currently) is not visible to the REPL APIs (Python, Julia). Give us ~ 4 weeks, and we can implement this much easier ... (for Plots)
Tom Breloff
@tbreloff
Jul 20 2016 16:20
ok cool... i'm just hoping to deprecate the pyplot backend ;)
Christopher Rackauckas
@ChrisRackauckas
Jul 20 2016 16:20
We all are :smile:
Josef Heinen
@jheinen
Jul 20 2016 16:20
Sure?
Tom Breloff
@tbreloff
Jul 20 2016 16:21
once GR is feature-complete with pyplot, I'll deprecate it and make GR the default
basic gui interactivity is one important feature
Josef Heinen
@jheinen
Jul 20 2016 16:22
The plan is, to 'serialize' the GR display list and use it both in a Qt5 and a JS backend. Once we have a fast and efficient serialization for the graphics objects, the coding step won't be that difficult.
The reason is, that we have requirements (from our users) to handle multiple plots in the browser (simultaneously)
... has to be well planned !!!
Josef Heinen
@jheinen
Jul 20 2016 16:29
@tbreloff , or, do you want to poll the events?
Tom Breloff
@tbreloff
Jul 20 2016 16:30
i want to inject callbacks
Josef Heinen
@jheinen
Jul 20 2016 16:31
@tbreloff , then we need to be patient :-(
Tom Breloff
@tbreloff
Jul 20 2016 16:32
i will be then!
Tom Breloff
@tbreloff
Jul 20 2016 19:42
@jheinen is there another output option than the x11 window? (i'm on ubuntu) not only is it typically ugly, but now text no longer renders for me:
tmp.png
if i save a png of the same plot, i get:
tmp.png
i vaguely remember something about a cairo backend to GR... does that exist?