Merge pull request #16 from carlobaldassi/cb/typos

Fix docs typos
This commit is contained in:
gcalderone 2020-04-14 11:45:18 +02:00 committed by GitHub
commit 28b1ee2898
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ save("parabola.gp") # => save a script file with both data and command to re-cr
x = -2pi:0.1:2pi x = -2pi:0.1:2pi
approx = fill(0., length(x)); approx = fill(0., length(x));
@gp t="Polynomial approximation of sin(x)" key="opaque" linetypes(:Blues_3) @gp t="Polynomial approximation of sin(x)" key="opaque" linetypes(:Blues_3)
@gp :- "set encoding utf8" raw"""set xtics ('-π' -pi, 'π/2' -pi/2, 0, 'π/2' pi/2, 'π' pi)""" @gp :- "set encoding utf8" raw"""set xtics ('-π' -pi, '-π/2' -pi/2, 0, 'π/2' pi/2, 'π' pi)"""
@gp :- xr=3.8.*[-1, 1] yr=[-1.5,1.5] "set grid" @gp :- xr=3.8.*[-1, 1] yr=[-1.5,1.5] "set grid"
@gp :- x sin.(x) approx .+= x "w filledcurve t 'n=0' lt 1" @gp :- x sin.(x) approx .+= x "w filledcurve t 'n=0' lt 1"
@gp :- x sin.(x) approx .+= -x.^3/6 "w filledcurve t 'n=1' lt 2" @gp :- x sin.(x) approx .+= -x.^3/6 "w filledcurve t 'n=1' lt 2"

View File

@ -14,7 +14,7 @@ saveas(file) = save(term="pngcairo size 550,350 fontscale 0.8", output="assets/$
## Options ## 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: 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 `false`; - `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`;
- `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: - `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 ```@repl abc