diff --git a/README.md b/README.md index 030eb9a..d6b93ca 100644 --- a/README.md +++ b/README.md @@ -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: 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://www.gnuplotting.org/ diff --git a/docs/src/index.md b/docs/src/index.md index e803d67..eb73a48 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -57,8 +57,8 @@ Last but not least, have a look at the **Gnuplot.jl** [Examples](@ref) page. ## Notation In this documentation: -- **Gnuplot.jl** refers to the Julia package; -- gnuplot refers to the [gnuplot](http://gnuplot.info/) application. +- "**Gnuplot.jl**" refers to the Julia package; +- "gnuplot" refers to the [gnuplot](http://gnuplot.info/) application. ## Table of Contents diff --git a/src/Gnuplot.jl b/src/Gnuplot.jl index c9fdba9..2aa7f67 100644 --- a/src/Gnuplot.jl +++ b/src/Gnuplot.jl @@ -108,7 +108,8 @@ function parseKeywords(; kwargs...) cblabel=AbstractString, xlog=Bool, ylog=Bool, - zlog=Bool) + zlog=Bool, + cblog=Bool) kw = canonicalize(template; kwargs...) out = Vector{String}() @@ -125,6 +126,7 @@ function parseKeywords(; kwargs...) ismissing(kw.xlog ) || (push!(out, (kw.xlog ? "" : "un") * "set logscale x")) ismissing(kw.ylog ) || (push!(out, (kw.ylog ? "" : "un") * "set logscale y")) ismissing(kw.zlog ) || (push!(out, (kw.zlog ? "" : "un") * "set logscale z")) + ismissing(kw.cblog ) || (push!(out, (kw.cblog ? "" : "un") * "set logscale cb")) return out 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`; - `ylog=true` => `set logscale y`; - `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]`. """ macro gp(args...)