# Notate the original value form (not logged) in loglog plot

**URL:** https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049
**Category:** General Usage
**Tags:** question, plotting, gaston
**Created:** [March 16, 2020, 5:32pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049 "2020-03-16T17:32:25Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![1634](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1634/32/12119_2.png) [@1634](https://discourse.julialang.org/u/1634)
#### Post date: [March 16, 2020, 5:32pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/1 "2020-03-16T17:32:25Z")

</div>

The x value vector x=[5e-10, 5e-9, 5e-8, 5e-7, 5e-6]. If `plot(,xticks=x)` then it’s marked after logged. Can I notate it by 5e\*\* scale correspondingly? Also, is it possible to tick y=collect(0:10:100) by its original form on y axis not logged?

 ![image](https://global.discourse-cdn.com/julialang/original/2X/e/e1b27e06f69ad9920508c1cabf449a7bbcdf7a19.png)

---

<div class="post-metadata">

### Author: ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)
#### Post date: [March 16, 2020, 6:02pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/2 "2020-03-16T18:02:06Z")

</div>

You can do something like this in [Gaston](https://mbaz.github.io/Gaston.jl/v0.10.0/), which uses gnuplot to plot:

```julia
using Gaston
t=1:0.01:10
set(axis="loglog")
plot(t,sin.(2π*t).+2,gpcom="set xtics 0, 2, 10 nologscale")

```

which produces  
 ![image](https://global.discourse-cdn.com/julialang/original/3X/2/9/2963680960031f1dc197476cb21e2fb87e2aa186.png)

The key part is the `nologscale` tics parameter. See page 190 in Gnuplot’s 5.2 user manual for more details.

---

<div class="post-metadata">

### Author: ![1634](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1634/32/12119_2.png) [@1634](https://discourse.julialang.org/u/1634)
#### Post date: [March 16, 2020, 7:07pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/3 "2020-03-16T19:07:41Z")

</div>

It was successfully installed but fail to be used.

```julia
(v1.3) pkg> add Gaston
  Updating registry at `C:\Users\Amend\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed Gaston ─ v0.10.0
  Updating `C:\Users\Amend\.julia\environments\v1.3\Project.toml`
  [4b11ee91] + Gaston v0.10.0
  Updating `C:\Users\Amend\.julia\environments\v1.3\Manifest.toml`
  [4b11ee91] + Gaston v0.10.0

julia> using Gaston
[Info: Precompiling Gaston [4b11ee91-296f-5714-9832-002c20994614]
ERROR: InitError: Gaston cannot be loaded: gnuplot is not available on this system.
Stacktrace:
 [1] __init__ () at C:\Users\Amend\.julia\packages\Gaston\JtE39\src\Gaston.jl:64
 [2] _include_from_serialized(::String, ::Array{Any,1}) at .\loading.jl:692
 [3] _require_from_serialized(::String) at .\loading.jl:743
 [4] _require(::Base.PkgId) at .\loading.jl:1034
 [5] require(::Base.PkgId) at .\loading.jl:922
 [6] require(::Module, ::Symbol) at .\loading.jl:917
during initialization of module Gaston

```

I searched for the error report but only found  
[https://maleadt.github.io/NewPkgEval.jl/detail/Gaston.html](https://maleadt.github.io/NewPkgEval.jl/detail/Gaston.html)  
Sorry I got confused. Is Gaston availale to Julia1.3.0 or `this system`? Also, if this can be solved, can the same syntax be applied in scatter()?

---

<div class="post-metadata">

### Author: ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)
#### Post date: [March 16, 2020, 7:13pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/4 "2020-03-16T19:13:45Z")

</div>

Yeah – you need to install gnuplot too: [gnuplot download](http://www.gnuplot.info/download.html)

And yeah – the same syntax is available to `scatter`.

---

<div class="post-metadata">

### Author: ![1634](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1634/32/12119_2.png) [@1634](https://discourse.julialang.org/u/1634)
#### Post date: [March 16, 2020, 8:59pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/5 "2020-03-16T20:59:11Z")

</div>

> [@mbaz](#):
>
> Gnuplot’s 5.2 user manual

The flexibility is awesome!

I installed Gaston from

> **[gnuplot - Browse /gnuplot/5.2.8 at SourceForge.net](https://sourceforge.net/projects/gnuplot/files/gnuplot/5.2.8/)**
>
> A portable, multi-platform, command-line driven graphing utility

Though a warning appears after installation

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/6/96fcf726bd6611b94c73dd6f32c857cc10bbf251.png)  
But in julia, `using Gaston` is successful. However, it keeps reporting  
`config not defined`

```julia
julia> using Gaston

julia> t=1:0.01:10
1.0:0.01:10.0

julia> Gaston.set(axis="loglog")
ERROR: UndefVarError: config not defined
Stacktrace:
 [1] (::Gaston.var"#kw##set")(::NamedTuple{(:axis,),Tuple{String}}, ::typeof(set)) at .\none:0
 [2] top-level scope at none:0

julia> Gaston.plot(t,sin.(2π*t).+2,gpcom="set xtics 0, 2, 10 nologscale")
ERROR: UndefVarError: config not defined
Stacktrace:
 [1] (::Gaston.var"#kw##plot")(::NamedTuple{(:gpcom,),Tuple{String}}, ::typeof(Gaston.plot), ::StepRangeLen{Float64,Base.TwicePrecision{Float64},Base.TwicePrecision{Float64}}, ::Array{Float64,1}) at .\none:0
 [2] top-level scope at none:0

```

---

<div class="post-metadata">

### Author: ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)
#### Post date: [March 16, 2020, 9:08pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/6 "2020-03-16T21:08:05Z")

</div>

Hmh, that’s a new one… Is this in a fresh Julia session? Are you running Gaston v0.10 (not master)?

BTW, you can run `set(...)` and `plot(...)`, without `Gaston.` at the start.

---

<div class="post-metadata">

### Author: ![1634](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/1634/32/12119_2.png) [@1634](https://discourse.julialang.org/u/1634)
#### Post date: [March 16, 2020, 9:30pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/7 "2020-03-16T21:30:46Z")

</div>

thanks but that’s the reason I added `Gaston.` before `set`

```julia
julia> using Gaston
julia> t=1:0.01:10
julia> set(axis="loglog")
ERROR: UndefVarError: config not defined
julia> plot(t,sin.(2π*t).+2,gpcom="set xtics 0, 2, 10 nologscale")
ERROR: Unknown key: gpcom

```

Yes it’s

```julia
julia> Pkg.API.installed()["Gaston"]
v"0.10.0"

```

---

<div class="post-metadata">

### Author: ![mbaz](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbaz/32/17295_2.png) [@mbaz](https://discourse.julialang.org/u/mbaz)
#### Post date: [March 16, 2020, 9:37pm UTC](https://discourse.julialang.org/t/notate-the-original-value-form-not-logged-in-loglog-plot/36049/8 "2020-03-16T21:37:31Z")

</div>

The only reason I can think of for getting this message is that you’re running the same session where `using Gaston` failed (because gnuplot was not installed), and something was left uninitialized. Can you try exiting Julia and starting again?
