Docstrings updated

This commit is contained in:
Giorgio Calderone 2020-03-28 19:44:22 +01:00
parent db094ec85d
commit 863b4eb3e8
2 changed files with 19 additions and 6 deletions

View File

@ -30,6 +30,7 @@ In order to call these functions you should add the `Gnuplot.` prefix to the fun
Gnuplot.Histogram1D Gnuplot.Histogram1D
Gnuplot.Histogram2D Gnuplot.Histogram2D
Gnuplot.IsoContourLines Gnuplot.IsoContourLines
Gnuplot.Options
Gnuplot.Path2d Gnuplot.Path2d
Gnuplot.exec Gnuplot.exec
Gnuplot.gpversion Gnuplot.gpversion

View File

@ -47,15 +47,27 @@ end
# --------------------------------------------------------------------- # ---------------------------------------------------------------------
"""
Options
Structure containing the package global options, accessible through `Gnuplot.options`.
# Fields
- `dry::Bool`: whether to use *dry* sessions, i.e. without an underlying Gnuplot process (default: `false`)
- `cmd::String`: command to start the Gnuplot process (default: `"gnuplot"`)
- `default::Symbol`: default session name (default: `:default`)
- `init::Vector{String}`: commands to initialize the gnuplot session (e.g., to set default terminal)
- `verbose::Bool`: verbosity flag (default: `false`)
"""
Base.@kwdef mutable struct Options Base.@kwdef mutable struct Options
dry::Bool = false # Use "dry" sessions (i.e. without an underlying Gnuplot process) dry::Bool = false
cmd::String = "gnuplot" # Customizable command to start the Gnuplot process cmd::String = "gnuplot"
default::Symbol = :default # Default session name default::Symbol = :default
init::Vector{String} = Vector{String}() # Commands to initialize the gnuplot session (e.g., to set default terminal) init::Vector{String} = Vector{String}()
verbose::Bool = false # verbosity flag (true/false) verbose::Bool = false
datalines::Int = 4; # How many lines of a dataset are printed in log
end end
# ╭───────────────────────────────────────────────────────────────────╮ # ╭───────────────────────────────────────────────────────────────────╮
# │ GLOBAL VARIABLES │ # │ GLOBAL VARIABLES │
# ╰───────────────────────────────────────────────────────────────────╯ # ╰───────────────────────────────────────────────────────────────────╯