These are chat archives for jheinen/GR.jl

21st
Sep 2016
DeadbraiN
@tmptrash
Sep 21 2016 05:50
This is drawing function:
  function dot(win::Window, x::Int, y::Int, color::UInt32)
    if color > UInt32(Dots.MAX_COLOR)
      Helper.warn(string("Unsupported color index ", color))
      color = UInt32(Dots.MAX_COLOR)
    end
    if win.scale > 1
      x = (x - 1) * win.scale + 1
      y = win.height * win.scale - (y - 1) * win.scale + 1
      GR.setlinecolorind(Int(color))
      GR.setfillcolorind(Int(color))
      GR.fillrect(x, x + win.scale, y, y + win.scale)
    else
      GR.setmarkercolorind(Int(color))
      win.xBuf[1] = x
      win.yBuf[1] = y
      GR.polymarker(win.xBuf, win.yBuf)
    end
  end
Tom Breloff
@tbreloff
Sep 21 2016 17:18
hi @jheinen. I still have really ugly graphs on my Ubuntu 16.04 machine... is there a way to force it to use a prettier canvas? (cairo?)
Josef Heinen
@jheinen
Sep 21 2016 19:58
@tbreloff : Strange!? GR should use (its own) freetype fonts since v0.20.0. Did you install a GR Ubuntu package (https://software.opensuse.org/download.html?project=science:gr-framework&package=python-gr)? Those packages are probably not up-to-date ...
Tom Breloff
@tbreloff
Sep 21 2016 19:59
not that i know of
Christopher Rackauckas
@ChrisRackauckas
Sep 21 2016 19:59
(I have some ugly defaults on Windows but not CentOS 7, is that the same issue?)
Tom Breloff
@tbreloff
Sep 21 2016 20:00
on mine, there's no alpha, everything is horribly pixelated, lines are sometimes just missing
if you output png it's fine though
i still use it frequently just for the speed
Christopher Rackauckas
@ChrisRackauckas
Sep 21 2016 20:01
I have the same thing on Windows
The lines are also a little wonky and thin
(until PNG output)
Tom Breloff
@tbreloff
Sep 21 2016 20:01
is there a way to reinstall from scratch? (meaning... is there someplace that needs to be purged of GR files to make sure I get recent everything?)
Josef Heinen
@jheinen
Sep 21 2016 20:04
@tbreloff : If Pkg.build("GR") does not download a new run-time, you can try to manually remove GR/deps/gr before ...
But this only works, if there is no GR installation "outside" Julia, e.g. in /usr/gr, /usr/local/gr, $(HOME)/gr ...
Tom Breloff
@tbreloff
Sep 21 2016 20:08
there was a ~/gr!!
where did that come from? I don't remember putting it there
Josef Heinen
@jheinen
Sep 21 2016 20:09
... the GR Qt backend, which solves all these problems :-), ist still WIP
@tbreloff : did you try to manually install GR (a long time ago) ? ;-)
Tom Breloff
@tbreloff
Sep 21 2016 20:10
ok reinstalled... it looks better, but still no alpha
Josef Heinen
@jheinen
Sep 21 2016 20:12
Does GKS_WSTYPE=cairopng help?
Tom Breloff
@tbreloff
Sep 21 2016 20:13
GKS: /home/tom/.julia/v0.5/GR/deps/gr/lib/cairoplugin.so: undefined symbol: XRenderCompositeText32
i did ENV["GKS_WSTYPE"] = "cairopng" before loading GR
Josef Heinen
@jheinen
Sep 21 2016 20:15
Are you using GR master?
Tom Breloff
@tbreloff
Sep 21 2016 20:15
no 0.15.0
should i try master?
Josef Heinen
@jheinen
Sep 21 2016 20:16
Yes ;-)
I should implement an auto-update. The GR installation is too complicated!
Tom Breloff
@tbreloff
Sep 21 2016 20:19
you just need an automated way to clear all and start from scratch
fyi i just had to work around diverged master branch... julia wouldn't checkout the latest
ok update complete, and same results
again... it looks nicer, but no alpha
Tom Breloff
@tbreloff
Sep 21 2016 20:25
oh great... now i can't save png anymore!
same GKS error as above
Josef Heinen
@jheinen
Sep 21 2016 20:29
Unbelievable. I'll try to reproduce this on my VM (when I'm back in office). Sorry!
Tom Breloff
@tbreloff
Sep 21 2016 20:30
there's always something! :) at least GR is roughly 100000x faster than other backends :clap:
Josef Heinen
@jheinen
Sep 21 2016 20:38
I was one of the first Linux users in our company (many years ago) and I really liked it - as opposed to Windows. Now, in 2016, it seems to be easier to deploy packages for Windows and macOS X. Compatibility matters (for Microsoft and Apple) - but what has happened to Linux in the last 2 years?
Tom Breloff
@tbreloff
Sep 21 2016 20:46
poor linux... not getting the love it needs
Josef Heinen
@jheinen
Sep 21 2016 20:51
Too many Linux flavours, distributions - If I could turn back time ...
But I still have the illusion that Qt can solve this problem ...
It should be possible to deploy a Julia package (like GR - a wrapper for a C/C++ library) with an empty REQUIRE file.