From 875ee2ea1e2c0aeb373ecd87037a38ccecab013d Mon Sep 17 00:00:00 2001 From: Jan Philipp Thiele Date: Tue, 19 Nov 2024 11:31:08 +0100 Subject: [PATCH 1/2] Add codespell config file --- .codespellrc | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .codespellrc diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 0000000..f0367c6 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +ignore-words-list = missings,rcall + From a1740d611422cdcf5a9b5c7018f2acdc6c413c64 Mon Sep 17 00:00:00 2001 From: Jan Philipp Thiele Date: Tue, 19 Nov 2024 11:39:06 +0100 Subject: [PATCH 2/2] Fix spelling marked by codespell --- CHANGELOG.md | 2 +- README.md | 2 +- examples/plotting.jl | 2 +- src/common.jl | 2 +- src/dispatch.jl | 6 +++--- src/makie.jl | 6 +++--- src/plots.jl | 6 +++--- 7 files changed, 13 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 64a8ff0..c582e60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -64,7 +64,7 @@ Some updates, fixes: - Prevent PyPlot from normalizing quiver vectors -- Pin CairoMakie vesion due to https://github.com/MakieOrg/Makie.jl/issues/3440 +- Pin CairoMakie version due to https://github.com/MakieOrg/Makie.jl/issues/3440 - Add warnings for functionality not implemented in Plots diff --git a/README.md b/README.md index 59e8fd0..38cfa78 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ streamplot(grid, vectorfunction,Plotter=GLMakie) This works for 1/2/3D grids and either a function represented by its values on the nodes of the grid, or a scalar function of 1, 2 or 3 -variables, respectively. Vector and stream plots are currenly available for 2D only. +variables, respectively. Vector and stream plots are currently available for 2D only. The `grid` argument should be an `ExtendableGrid` as defined by the [ExtendableGrids.jl](https://github.com/WIAS-PDELib/ExtendableGrids.jl) package. Instead of `grid`, the following arguments can be passed in order to describe a grid (which then is internally created on-the-fly): diff --git a/examples/plotting.jl b/examples/plotting.jl index 4dd41bf..c1308fa 100644 --- a/examples/plotting.jl +++ b/examples/plotting.jl @@ -8,7 +8,7 @@ # `WGLMakie` and `CairoMakie` work in principle but in the moment don't deliver # all necessary functionality. For `Plots` we miss the possibility to work with triangle meshes (this is under development, though) # -# Also supported is [`VTKView`](https://github.com/j-fu/VTKView.jl) which is exeprimental and works only on linux. +# Also supported is [`VTKView`](https://github.com/j-fu/VTKView.jl) which is experimental and works only on linux. # # # ## Grid plots diff --git a/src/common.jl b/src/common.jl index 18699ef..b5dee13 100644 --- a/src/common.jl +++ b/src/common.jl @@ -305,7 +305,7 @@ function vectorsample(grid::ExtendableGrid{Tv, Ti}, v; # Check positivity of bc coordinates with some slack for # round-off errors. Therefore a point may be found in two - # neigboring triangles. Constraining points to the raster ensures + # neighboring triangles. Constraining points to the raster ensures # that only the last of them is taken. if all(x -> x > -tol, λ) # Interpolate vector value diff --git a/src/dispatch.jl b/src/dispatch.jl index cacfc94..f889fa3 100644 --- a/src/dispatch.jl +++ b/src/dispatch.jl @@ -202,7 +202,7 @@ vis=GridVisualizer(Plotter=PyPlot, layout=(2,2) ...plot!(vis[1,2], ...) ``` -A `...plot` command just implicitely creates a plot context: +A `...plot` command just implicitly creates a plot context: ```julia gridplot(grid, Plotter=PyPlot) @@ -329,7 +329,7 @@ function default_plot_kwargs() :offset => Pair(:default, "Offset of quiver grid"), :vscale => Pair(1.0, "Vector field scale for quiver grid"), :vconstant => Pair(false, "Set all arrow length constant in vector plot"), - :vnormalize => Pair(true, "Normalize vector field befor scaling"), + :vnormalize => Pair(true, "Normalize vector field before scaling"), :interior => Pair(true, "3D plot interior of grid"), :xplanes => Pair([prevfloat(Inf)], "3D x plane positions or number thereof"), :yplanes => Pair([prevfloat(Inf)], "3D y plane positions or number thereof"), @@ -843,7 +843,7 @@ end """ $(TYPEDSIGNATURES) -Finish and show plot. Same as setting `:reveal=true` or `:show=true` in last plot statment +Finish and show plot. Same as setting `:reveal=true` or `:show=true` in last plot statement for a context. """ reveal(visualizer::GridVisualizer) = reveal(visualizer, plottertype(visualizer.Plotter)) diff --git a/src/makie.jl b/src/makie.jl index 3513d82..690d54b 100644 --- a/src/makie.jl +++ b/src/makie.jl @@ -399,7 +399,7 @@ function scalarplot!(ctx, TP::Type{MakieType}, ::Type{Val{1}}, grids, parentgrid markersize = ctx[:markersize],) end - # Draw dummy line with marker on top ot the first + # Draw dummy line with marker on top of the first # marker position already drawn in order to # get the proper legend entry if ctx[:label] != "" @@ -511,12 +511,12 @@ function makescene_grid(ctx) GL[2, 1] = XMakie.Colorbar(ctx[:figure]; colormap = XMakie.cgrad(ctx[:cmap]; categorical = true), limits = (1, ncol), - heigth = 15, + height = 15, vertical = false,) GL[3, 1] = XMakie.Colorbar(ctx[:figure]; colormap = XMakie.cgrad(ctx[:bcmap]; categorical = true), limits = (1, nbcol), - heigth = 15, + height = 15, vertical = false,) end GL diff --git a/src/plots.jl b/src/plots.jl index 052c100..92e4f86 100644 --- a/src/plots.jl +++ b/src/plots.jl @@ -3,10 +3,10 @@ reveal=true anstelle von show=true ? reveal(p) -2D Arrays in 1D plot wie in plts: Label als array, color als array. -Das geht auch einfach in Makie +2D Arrays in 1D plot as in plts: Label as array, color as array. +This also works in Makie -pass=(...): kwargs für plotter +pass=(...): kwargs for plotter =# initialize!(p, ::Type{PlotsType}) = nothing