From 3c06aba985ad9c7ac6625f258f3ec8c5713f40d6 Mon Sep 17 00:00:00 2001 From: Giorgio Calderone Date: Wed, 15 Apr 2020 23:19:30 +0200 Subject: [PATCH] Docs updated --- docs/src/options.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/src/options.md b/docs/src/options.md index 7d78a7b..be4709d 100644 --- a/docs/src/options.md +++ b/docs/src/options.md @@ -14,7 +14,7 @@ saveas(file) = save(term="pngcairo size 550,350 fontscale 0.8", output="assets/$ ## Options The package options are stored in a global structure available in Julia as `Gnuplot.option` (the type of the structure is [`Gnuplot.Options`](@ref)). The most important settings are as follows: -- `dry::Bool`: if true all new sessions will be started as [Dry sessions](@ref). Default is `false`, but if the package is not able to start a gnuplot it will automatically switch to `true`; +- `dry::Bool`: if true all new sessions will be started as [Dry sessions](@ref). Default is `false`, but if the package is not able to start a gnuplot process it will automatically switch to `true`; - `init::Vector{String}`: initialization commands to be executed when a new session is created. Default is an empty vector. It can be used to, e.g., set a custom terminal: ```@repl abc @@ -61,8 +61,8 @@ macro gnuplotrc() return :( using Gnuplot; - # Uncomment the following if you don't have the gnuplot - # executable installed on your platform + # Uncomment following to true if you don't have the gnuplot + # executable installed on your platform: #Gnuplot.options.dry = true; # Uncomment the following and set the proper path if the @@ -70,10 +70,12 @@ macro gnuplotrc() #Gnuplot.options.cmd = "/path/to/gnuplot"; # Set the default terminal for interacitve use + empty!(Gnuplot.options.init); push!(Gnuplot.options.init, "set term wxt size 700,400"); # Set the default linetypes - push!(Gnuplot.options.reset, linetypes(:Set1_5, lw=2)); + empty!(Gnuplot.options.reset); + push!(Gnuplot.options.reset, linetypes(:Set1_5, lw=1.5, ps=1.5)); # Initialize the gnuplot REPL using the provided `start_key`. # Comment the following to disable the REPL.