Docs updated; INtroduced cblog keyword

This commit is contained in:
Giorgio Calderone 2020-04-10 11:47:38 +02:00
parent b9f807c1d9
commit 5b554608c4
3 changed files with 7 additions and 4 deletions

View File

@ -76,6 +76,6 @@ save(term="pngcairo size 660,350 fontscale 0.8", output="examples/ex3.png")
The main gallery of examples is maintained in a separate repository: The main gallery of examples is maintained in a separate repository:
https://lazarusa.github.io/gnuplot-examples/ https://lazarusa.github.io/gnuplot-examples/
Since **Gnuplot.jl** is just an interface, it can reproduce all the plots generated by gnuplot. Further examples are available here: Since **Gnuplot.jl** is just a transparent interface (not a wrapper) it exposes all capabilities of the underlying gnuplot process, hence pure-gnuplot examples also applies to **Gnuplot.jl**. Further examples are available here:
- http://gnuplot.sourceforge.net/demo_5.2/ - http://gnuplot.sourceforge.net/demo_5.2/
- http://www.gnuplotting.org/ - http://www.gnuplotting.org/

View File

@ -57,8 +57,8 @@ Last but not least, have a look at the **Gnuplot.jl** [Examples](@ref) page.
## Notation ## Notation
In this documentation: In this documentation:
- **Gnuplot.jl** refers to the Julia package; - "**Gnuplot.jl**" refers to the Julia package;
- gnuplot refers to the [gnuplot](http://gnuplot.info/) application. - "gnuplot" refers to the [gnuplot](http://gnuplot.info/) application.
## Table of Contents ## Table of Contents

View File

@ -108,7 +108,8 @@ function parseKeywords(; kwargs...)
cblabel=AbstractString, cblabel=AbstractString,
xlog=Bool, xlog=Bool,
ylog=Bool, ylog=Bool,
zlog=Bool) zlog=Bool,
cblog=Bool)
kw = canonicalize(template; kwargs...) kw = canonicalize(template; kwargs...)
out = Vector{String}() out = Vector{String}()
@ -125,6 +126,7 @@ function parseKeywords(; kwargs...)
ismissing(kw.xlog ) || (push!(out, (kw.xlog ? "" : "un") * "set logscale x")) ismissing(kw.xlog ) || (push!(out, (kw.xlog ? "" : "un") * "set logscale x"))
ismissing(kw.ylog ) || (push!(out, (kw.ylog ? "" : "un") * "set logscale y")) ismissing(kw.ylog ) || (push!(out, (kw.ylog ? "" : "un") * "set logscale y"))
ismissing(kw.zlog ) || (push!(out, (kw.zlog ? "" : "un") * "set logscale z")) ismissing(kw.zlog ) || (push!(out, (kw.zlog ? "" : "un") * "set logscale z"))
ismissing(kw.cblog ) || (push!(out, (kw.cblog ? "" : "un") * "set logscale cb"))
return out return out
end end
@ -1154,6 +1156,7 @@ The `@gp` macro, and its companion `@gsp` for 3D plots, allows to send data and
- `xlog=true` => `set logscale x`; - `xlog=true` => `set logscale x`;
- `ylog=true` => `set logscale y`; - `ylog=true` => `set logscale y`;
- `zlog=true` => `set logscale z`. - `zlog=true` => `set logscale z`.
- `cblog=true` => `set logscale cb`.
All Keyword names can be abbreviated as long as the resulting name is unambiguous. E.g. you can use `xr=[1,10]` in place of `xrange=[1,10]`. All Keyword names can be abbreviated as long as the resulting name is unambiguous. E.g. you can use `xr=[1,10]` in place of `xrange=[1,10]`.
""" """
macro gp(args...) macro gp(args...)