# GR in Atom: no labels, no ticks, no numbers on axes

**URL:** <https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965>\
**Category:** General Usage\
**Created:** [March 17, 2019, 3:32pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965 "2019-03-17T15:32:35Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 17, 2019, 3:32pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/1 "2019-03-17T15:32:35Z")

</div>

I use GR to plot my data in Atom. When I plot something (whether it is from a Julia script or directly from the REPL) I get a graph with gridlines, but without labels, ticks and numbers on the axes. Hence, there is no scale. The plot is shown inside an Atom graph window.

I tried to find a solution, but without succes. Can you help?

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [March 17, 2019, 3:48pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/2 "2019-03-17T15:48:49Z")

</div>

Could you try GR master?

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 17, 2019, 4:26pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/3 "2019-03-17T16:26:06Z")

</div>

I get this error message on this line:

```julia
scatter(range(1,64;step=1),hxgbin)

```

```julia
[Info: Recompiling stale cache file /Users/mrohde/.julia/compiled/v1.1/GR/NDU5Y.ji for GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71]
ERROR: LoadError: error compiling #scatter#23: error compiling plot_data: error compiling send_meta: error compiling openmeta: could not load library "libGR.so"
dlopen(libGR.so.dylib, 1): image not found
Stacktrace:
 [1] scatter(::StepRange{Int64,Int64}, ::Vararg{Any,N} where N) at /Users/mrohde/.julia/packages/GR/PaF05/src/jlgr.jl:1528
 [2] #scatter#8(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::StepRange{Int64,Int64}, ::Vararg{Any,N} where N) at /Users/mrohde/.julia/packages/GR/PaF05/src/GR.jl:3073
 [3] scatter(::StepRange{Int64,Int64}, ::Vararg{Any,N} where N) at /Users/mrohde/.julia/packages/GR/PaF05/src/GR.jl:3073
 [4] top-level scope at none:0

```

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 17, 2019, 4:26pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/4 "2019-03-17T16:26:34Z")

</div>

So I did

Pkg\> add GR#master

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [March 17, 2019, 5:07pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/5 "2019-03-17T17:07:57Z")

</div>

Please try to rebuild GR:

```julia
ENV["GRDIR"]=""
] build GR

```

There is something wrong with the GR run-time on your machine.

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 17, 2019, 5:55pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/6 "2019-03-17T17:55:53Z")

</div>

After this I could compile and run the code. A graph is shown. Now there is another thing: the plot area has the dark-gray background (the same as my UI theme in Atom). Gridlines are white, the plot is blue and numbers along the axes are pure black (hence hardly visible). The desired situation would be a white plot area with black grid lines, axes and numbers, labels etc. and a plot in a certain color.

Also: zooming is not possible anymore.

Thanks for your help.

 ![graph](https://global.discourse-cdn.com/julialang/original/3X/e/e/ee80fb8a4e44a747897b26b59af8cd99ec9185b7.png)

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [March 17, 2019, 8:54pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/7 "2019-03-17T20:54:56Z")

</div>

For now, you will have to manually change the color scheme.

```julia
using GR
setcolorscheme(2)
...

```

In a future version, I’ll probably try to change the color scheme depending on Atom’s settings…

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 18, 2019, 2:39pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/8 "2019-03-18T14:39:27Z")

</div>

How should I use this function? If I use setcolorscheme(2) in a script or in the REPL I get the message that it is an undefined function. Thanks.

---

<div class="post-metadata">

**Author:** ![jheinen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jheinen/32/2787_2.png) [@jheinen](https://discourse.julialang.org/u/jheinen)\
**Post date:** [March 18, 2019, 4:01pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/9 "2019-03-18T16:01:02Z")

</div>

Sorry, my mistake:

```julia
using GR
usecolorscheme(2)

```

---

<div class="post-metadata">

**Author:** ![drmartinrohde](https://avatars.discourse-cdn.com/v4/letter/d/f0a364/32.png) [@drmartinrohde](https://discourse.julialang.org/u/drmartinrohde)\
**Post date:** [March 18, 2019, 4:10pm UTC](https://discourse.julialang.org/t/gr-in-atom-no-labels-no-ticks-no-numbers-on-axes/21965/10 "2019-03-18T16:10:33Z")

</div>

Perfect, thanks!
