From 587006bc93429d2a9f387d9693cf9b5032e83e60 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 1 Nov 2024 18:03:43 +0100 Subject: [PATCH 1/5] correct spelling errors --- GraphRecipes/src/graph_layouts.jl | 12 ++++++------ NEWS.md | 6 +++--- PlotsBase/ext/GRExt.jl | 2 +- PlotsBase/ext/GastonExt.jl | 2 +- PlotsBase/src/Commons/attrs.jl | 4 ++-- PlotsBase/src/arg_desc.jl | 4 ++-- PlotsBase/src/examples.jl | 4 ++-- PlotsBase/src/layouts.jl | 2 +- PlotsBase/src/plotly.jl | 12 ++++++------ PlotsBase/src/recipes.jl | 2 +- PlotsBase/src/shorthands.jl | 2 +- PlotsBase/src/utils.jl | 8 ++++---- PlotsBase/test/test_misc.jl | 2 +- PlotsBase/test/test_pgfplotsx.jl | 4 ++-- RecipesPipeline/src/user_recipe.jl | 2 +- StatsPlots/README.md | 8 ++++---- StatsPlots/src/hist.jl | 19 +++++++------------ docs/gallery/gaston/config.json | 6 ------ docs/gallery/gaston/index.md | 12 ------------ docs/gallery/gr/config.json | 6 ------ docs/gallery/gr/index.md | 12 ------------ docs/gallery/inspectdr/config.json | 6 ------ docs/gallery/inspectdr/index.md | 15 --------------- docs/gallery/pgfplotsx/config.json | 6 ------ docs/gallery/pgfplotsx/index.md | 12 ------------ docs/gallery/plotlyjs/config.json | 6 ------ docs/gallery/plotlyjs/index.md | 12 ------------ docs/gallery/pythonplot/config.json | 6 ------ docs/gallery/pythonplot/index.md | 12 ------------ docs/gallery/unicodeplots/config.json | 6 ------ docs/gallery/unicodeplots/index.md | 12 ------------ docs/make.jl | 2 +- docs/src/GraphRecipes/introduction.md | 2 +- docs/src/RecipesBase/types.md | 2 +- docs/src/attributes.md | 2 +- docs/src/backends.md | 4 ++-- docs/src/contributing.md | 2 +- docs/src/input_data.md | 2 +- docs/src/pipeline.md | 2 +- docs/src/recipes.md | 2 +- 40 files changed, 55 insertions(+), 189 deletions(-) delete mode 100644 docs/gallery/gaston/config.json delete mode 100644 docs/gallery/gaston/index.md delete mode 100644 docs/gallery/gr/config.json delete mode 100644 docs/gallery/gr/index.md delete mode 100644 docs/gallery/inspectdr/config.json delete mode 100644 docs/gallery/inspectdr/index.md delete mode 100644 docs/gallery/pgfplotsx/config.json delete mode 100644 docs/gallery/pgfplotsx/index.md delete mode 100644 docs/gallery/plotlyjs/config.json delete mode 100644 docs/gallery/plotlyjs/index.md delete mode 100644 docs/gallery/pythonplot/config.json delete mode 100644 docs/gallery/pythonplot/index.md delete mode 100644 docs/gallery/unicodeplots/config.json delete mode 100644 docs/gallery/unicodeplots/index.md diff --git a/GraphRecipes/src/graph_layouts.jl b/GraphRecipes/src/graph_layouts.jl index 6fa1b63d7..88df22985 100644 --- a/GraphRecipes/src/graph_layouts.jl +++ b/GraphRecipes/src/graph_layouts.jl @@ -132,7 +132,7 @@ function shell_graph( kw..., ) @assert dim == 2 - positions = NetworkLayout.shell(adjmat; nlist = nlist) + positions = NetworkLayout.shell(adjmat; nlist) ([p[1] for p ∈ positions], [p[2] for p ∈ positions], nothing) end @@ -234,16 +234,16 @@ function by_axis_local_stress_graph( for k ∈ 1:maxiter for p ∈ free_dims for i ∈ 1:n - numer, denom = 0.0, 0.0 + num, den = 0.0, 0.0 for j ∈ 1:n i == j && continue - numer += + num += w[i, j] * (X[p][j] + dist[i, j] * (X[p][i] - X[p][j]) / norm_ij(X, i, j)) - denom += w[i, j] + den += w[i, j] end - if denom != 0 - X[p][i] = numer / denom + if den != 0 + X[p][i] = num / den end end end diff --git a/NEWS.md b/NEWS.md index dc901e858..edd7fc079 100644 --- a/NEWS.md +++ b/NEWS.md @@ -62,7 +62,7 @@ import GR # loads backend code - stephist logscale improvements ## 0.25.2 -- improvements to handle missings +- improvements to handle `missing`s - pyplot: allow setting the color gradient for z values - document :colorbar_entry - limit number of automatic bins @@ -162,7 +162,7 @@ import GR # loads backend code - implement guide position in gr, pyplot and pgfplots - inspectdr fixes - default appveyor -- rudimentary missings support +- rudimentary `missing`s support - deprecation fixes for PGFPlots ## 0.20.0 @@ -568,7 +568,7 @@ Many updates, min julia 1.0 - GR: - manually draw 2D axes... fixes several issues and missing features - fontsize fix -- PGFPlots: pass axis syle +- PGFPlots: pass axis style #### 0.8.0 diff --git a/PlotsBase/ext/GRExt.jl b/PlotsBase/ext/GRExt.jl index 86b9b0056..9fb0294d7 100644 --- a/PlotsBase/ext/GRExt.jl +++ b/PlotsBase/ext/GRExt.jl @@ -2187,7 +2187,7 @@ function gr_z_normalized_log_scaled(scale, z, clims) any(x -> !isfinite(x), loglims) && throw( DomainError( loglims, - "Non-finite value in colorbar limits. Please provide explicits limits via `clims`.", + "Non-finite value in colorbar limits. Please provide explicit limits via `clims`.", ), ) z_log, get_z_normalized.(z_log, loglims...) diff --git a/PlotsBase/ext/GastonExt.jl b/PlotsBase/ext/GastonExt.jl index 09f5e3fb6..bf46e3f91 100644 --- a/PlotsBase/ext/GastonExt.jl +++ b/PlotsBase/ext/GastonExt.jl @@ -539,7 +539,7 @@ function gaston_parse_axes_attrs( # guide labels guide_font = guidefont(axis) if letter ≡ :y && dims == 2 - # vertical by default (consistency witht other backends) + # vertical by default (consistency with other backends) guide_font = font(guide_font; rotation = guide_font.rotation + 90) end push!( diff --git a/PlotsBase/src/Commons/attrs.jl b/PlotsBase/src/Commons/attrs.jl index 6b16d2c02..9bc426a49 100644 --- a/PlotsBase/src/Commons/attrs.jl +++ b/PlotsBase/src/Commons/attrs.jl @@ -957,13 +957,13 @@ end @attributes function process_font_attr!(plotattributes::AKW, fontname::Symbol, arg) T = typeof(arg) if fontname in (:legend_font,) - # TODO: this is neccessary while old and new font names coexist and should be standard after the transition + # TODO: this is necessary while old and new font names coexist and should be standard after the transition fontname = Symbol(fontname, :_) end if T <: PlotsBase.Font Symbol(fontname, :family) --> arg.family - # TODO: this is neccessary in the transition from old fontsize to new font_pointsize and should be removed when it is completed + # TODO: this is necessary in the transition from old fontsize to new font_pointsize and should be removed when it is completed if in(Symbol(fontname, :size), _all_attrs) Symbol(fontname, :size) --> arg.pointsize else diff --git a/PlotsBase/src/arg_desc.jl b/PlotsBase/src/arg_desc.jl index f448804cb..1f425483b 100644 --- a/PlotsBase/src/arg_desc.jl +++ b/PlotsBase/src/arg_desc.jl @@ -101,9 +101,9 @@ const _arg_desc = KW( :foreground_color_title => (ColorType, "Color of subplot title (`:match` matches :foreground_color_subplot`)."), :color_palette => (Union{AVec{ColorType},Symbol}, "Iterable (cycle through) or color gradient (generate list from gradient) or `:auto` (generate a color list using `Colors.distiguishable_colors` and custom seed colors chosen to contrast with the background). The color palette is a color list from which series colors are automatically chosen."), :legend_position => (Union{Bool,NTuple{2,Real},Symbol}, """ - Show the legend ? Can also be a (x,y) tuple or Symbol (legend position) or angle (angle,inout) tuple. Bottom left corner of legend is placed at (x,y). + Show the legend ? Can also be a (x,y) tuple or Symbol (legend position) or angle (angle,in-out) tuple. Bottom left corner of legend is placed at (x,y). Choose from (`:none`, `:best`, `:inline`, `:inside`, `:legend`) or any valid combination of `:(outer ?)(top/bottom ?)(right/left ?)`, i.e.: `:top`, `:topright`, `:outerleft`, `:outerbottomright` ... (note: only some may be supported in each backend)."""), - :legend_column => (Integer, "Number of columns in the legend. `-1` stands for maximum number of colums (horizontal legend)."), + :legend_column => (Integer, "Number of columns in the legend. `-1` stands for maximum number of columns (horizontal legend)."), :legend_title_font => (Font, "Font of the legend title."), :legend_font_family => (Union{AStr,Symbol}, "Font family of legend entries."), :legend_font_pointsize => (Integer, "Font pointsize of legend entries."), diff --git a/PlotsBase/src/examples.jl b/PlotsBase/src/examples.jl index d11b4a342..aa1d6e916 100644 --- a/PlotsBase/src/examples.jl +++ b/PlotsBase/src/examples.jl @@ -328,7 +328,7 @@ const _examples = PlotExample[ "Custom Markers", """A `PlotsBase.Shape` is a light wrapper around vertices of a polygon. For supported backends, pass arbitrary polygons as the marker shapes. Note: The center is (0,0) and - the size is expected to be rougly the area of the unit circle. + the size is expected to be roughly the area of the unit circle. """, quote verts = [ @@ -1308,7 +1308,7 @@ _backend_skips = Dict( 31, # animations - needs github.com/mbaz/Gaston.jl/pull/178 49, # TODO: support polar 60, # :perspective projection unsupported - 63, # FXIME: twin axes misalignement + 63, # FXIME: twin axes misalignment ], ) _backend_skips[:plotly] = _backend_skips[:plotlyjs] diff --git a/PlotsBase/src/layouts.jl b/PlotsBase/src/layouts.jl index 67586a2a3..231f9f150 100644 --- a/PlotsBase/src/layouts.jl +++ b/PlotsBase/src/layouts.jl @@ -319,7 +319,7 @@ function build_layout(layout::GridLayout, n::Integer, plts::AVec{Plot}) merge!(spmap, m) i += length(sps) elseif isa(l, Subplot) && empty - error("Subplot exists. Cannot re-use existing layout. Please make a new one.") + error("Subplot exists. Cannot reuse existing layout. Please make a new one.") end i ≥ n && break # only add n subplots end diff --git a/PlotsBase/src/plotly.jl b/PlotsBase/src/plotly.jl index ffde970f9..8612b01c0 100644 --- a/PlotsBase/src/plotly.jl +++ b/PlotsBase/src/plotly.jl @@ -381,7 +381,7 @@ function plotly_layout(plt::Plot) for sp ∈ plt.subplots spidx = multiple_subplots ? sp[:subplot_index] : "" - x_idx, y_idx = multiple_subplots ? plotly_link_indicies(plt, sp) : ("", "") + x_idx, y_idx = multiple_subplots ? plotly_link_indices(plt, sp) : ("", "") # add an annotation for the title if sp[:title] != "" @@ -646,8 +646,8 @@ get_plotly_marker(k, def) = get( def, ) -# find indicies of axes to which the subplot links to -function plotly_link_indicies(plt::Plot, sp::Subplot) +# find indices of axes to which the subplot links to +function plotly_link_indices(plt::Plot, sp::Subplot) if plt[:link] in (:x, :y, :both) x_idx = sp[:xaxis].sps[1][:subplot_index] y_idx = sp[:yaxis].sps[1][:subplot_index] @@ -657,7 +657,7 @@ function plotly_link_indicies(plt::Plot, sp::Subplot) x_idx, y_idx end -# the Shape contructor will automatically close the shape. since we need it closed, +# the Shape constructor will automatically close the shape. since we need it closed, # we split by NaNs and then construct/destruct the shapes to get the closed coords function plotly_close_shapes(x, y) xs, ys = nansplit(x), nansplit(y) @@ -735,7 +735,7 @@ function plotly_series(plt::Plot, series::Series) plotattributes_out[:zaxis] = "z$spidx" plotattributes_out[:scene] = "scene$spidx" else - x_idx, y_idx = length(plt.subplots) > 1 ? plotly_link_indicies(plt, sp) : ("", "") + x_idx, y_idx = length(plt.subplots) > 1 ? plotly_link_indices(plt, sp) : ("", "") plotattributes_out[:xaxis] = "x$(x_idx)" plotattributes_out[:yaxis] = "y$(y_idx)" end @@ -940,7 +940,7 @@ function plotly_series_shapes(plt::Plot, series::Series, clims) # x, y = series[:x], series[:y] # these are the axes that the series should be mapped to - x_idx, y_idx = plotly_link_indicies(plt, series[:subplot]) + x_idx, y_idx = plotly_link_indices(plt, series[:subplot]) plotattributes_base = KW( :xaxis => "x$(x_idx)", :yaxis => "y$(y_idx)", diff --git a/PlotsBase/src/recipes.jl b/PlotsBase/src/recipes.jl index 3e2db37c2..f054fd738 100644 --- a/PlotsBase/src/recipes.jl +++ b/PlotsBase/src/recipes.jl @@ -1084,7 +1084,7 @@ end # Error Bars Commons.@attributes function error_style!(plotattributes::AKW) - # errorbar color should soley determined by markerstrokecolor + # errorbar color should solely determined by markerstrokecolor haskey(plotattributes, :marker_z) && RecipesPipeline.reset_kw!(plotattributes, :marker_z) haskey(plotattributes, :line_z) && RecipesPipeline.reset_kw!(plotattributes, :line_z) diff --git a/PlotsBase/src/shorthands.jl b/PlotsBase/src/shorthands.jl index 89b43f69d..835ce48d1 100644 --- a/PlotsBase/src/shorthands.jl +++ b/PlotsBase/src/shorthands.jl @@ -520,7 +520,7 @@ for letter ∈ ("x", "y", "z") $($letter)error(x, y [, z]; $($letter)error = vals) $($letter)error!(x, y [, z]; $($letter)error = vals) - Create or add a series of $($letter)errorbars at the positions defined by `x`, `y` and `z` with the lenghts defined in `vals`. + Create or add a series of $($letter)errorbars at the positions defined by `x`, `y` and `z` with the lengths defined in `vals`. Markerstrokecolor will color the whole errorbars if not specified otherwise. """ diff --git a/PlotsBase/src/utils.jl b/PlotsBase/src/utils.jl index ec24b35ae..b9fa8e655 100644 --- a/PlotsBase/src/utils.jl +++ b/PlotsBase/src/utils.jl @@ -224,7 +224,7 @@ function heatmap_edges( ) nx, ny = length(x), length(y) # ismidpoints = z_size == (ny, nx) # This fails some tests, but would actually be - # the correct check, since (4, 3) != (3, 4) and a missleading plot is produced. + # the correct check, since (4, 3) != (3, 4) and a misleading plot is produced. ismidpoints = prod(z_size) == (ny * nx) isedges = z_size == (ny - 1, nx - 1) (ismidpoints || isedges) || @@ -696,7 +696,7 @@ __straightline_data(xl, yl, x, y, exp_fact) = ___straightline_data(xl, yl, x, y, exp_fact) else k, r = divrem(n, 3) - @assert r == 0 "Misformed data. `straightline_data` either accepts vectors of length 2 or 3k. The provided series has length $n" + @assert r == 0 "Malformed data. `straightline_data` either accepts vectors of length 2 or 3k. The provided series has length $n" xdata, ydata = fill(NaN, n), fill(NaN, n) for i ∈ 1:k inds = (3i - 2):(3i - 1) @@ -883,8 +883,8 @@ end # Function barrier because lims are type-unstable function _guess_best_legend_position(xl, yl, plt, weight = 100) scale = (maximum(xl) - minimum(xl), maximum(yl) - minimum(yl)) - u = zeros(4) # faster than tuple - # Quadrants where the points will be tested + u = zeros(4) # faster than tuple + # quadrants where the points will be tested quadrants = ( ((0.00, 0.25), (0.00, 0.25)), # bottomleft ((0.75, 1.00), (0.00, 0.25)), # bottomright diff --git a/PlotsBase/test/test_misc.jl b/PlotsBase/test/test_misc.jl index 06f594cef..14a81ec0e 100644 --- a/PlotsBase/test/test_misc.jl +++ b/PlotsBase/test/test_misc.jl @@ -297,7 +297,7 @@ with(:gr) do p4 = [0.5, 0.5, 1.0] pts = [p0, p1, p2, p3, p4] x, y, z = broadcast(i -> getindex.(pts, i), (1, 2, 3)) - # [x[i],y[i],z[i]] is the i-th vertix of the mesh + # [x[i],y[i],z[i]] is the i-th vertex of the mesh mesh3d( x, y, diff --git a/PlotsBase/test/test_pgfplotsx.jl b/PlotsBase/test/test_pgfplotsx.jl index 0d5f86068..950549db1 100644 --- a/PlotsBase/test/test_pgfplotsx.jl +++ b/PlotsBase/test/test_pgfplotsx.jl @@ -435,8 +435,8 @@ with(:pgfplotsx) do @testset "Latexify - LaTeXStrings" begin @test PlotsBase.pgfx_sanitize_string("A string, with 2 punctuation chars.") == "A string, with 2 punctuation chars." - @test PlotsBase.pgfx_sanitize_string("Interpolação polinomial") == - raw"Interpola$\textnormal{\c{c}}$$\tilde{a}$o polinomial" + @test PlotsBase.pgfx_sanitize_string("Interpolação polynomial") == + raw"Interpola$\textnormal{\c{c}}$$\tilde{a}$o polynomial" @test PlotsBase.pgfx_sanitize_string("∫∞ ∂x") == raw"$\int$$\infty$ $\partial$x" # special LaTeX characters diff --git a/RecipesPipeline/src/user_recipe.jl b/RecipesPipeline/src/user_recipe.jl index 00321d7ca..be650cce6 100644 --- a/RecipesPipeline/src/user_recipe.jl +++ b/RecipesPipeline/src/user_recipe.jl @@ -5,7 +5,7 @@ Wrap input arguments in a `RecipeData' vector and recursively apply user recipes and type recipes on the first element. Prepend the returned `RecipeData` vector. If an element with -empy `args` is returned pop it from the vector, finish up, and it to vector of `Dict`s with +empty `args` is returned pop it from the vector, finish up, and it to vector of `Dict`s with processed series. When all arguments are processed return the series `Dict`. """ function _process_userrecipes!(plt, plotattributes, args) diff --git a/StatsPlots/README.md b/StatsPlots/README.md index 39db1cd61..d318a9465 100644 --- a/StatsPlots/README.md +++ b/StatsPlots/README.md @@ -337,11 +337,11 @@ The `group` syntax is also possible in combination with `groupedbar`: ```julia ctg = repeat(["Category 1", "Category 2"], inner = 5) -nam = repeat("G" .* string.(1:5), outer = 2) +name = repeat("G" .* string.(1:5), outer = 2) -groupedbar(nam, rand(5, 2), group = ctg, xlabel = "Groups", ylabel = "Scores", - title = "Scores by group and category", bar_width = 0.67, - lw = 0, framestyle = :box) +groupedbar(name, rand(5, 2), group = ctg, xlabel = "Groups", ylabel = "Scores", + title = "Scores by group and category", bar_width = 0.67, + lw = 0, framestyle = :box) ``` ![](https://user-images.githubusercontent.com/6645258/32116755-b7018f02-bb2a-11e7-82c7-ca471ecaeecf.png) diff --git a/StatsPlots/src/hist.jl b/StatsPlots/src/hist.jl index e55e9a81a..2fb5ec706 100644 --- a/StatsPlots/src/hist.jl +++ b/StatsPlots/src/hist.jl @@ -134,11 +134,11 @@ PlotsBase.wand_edges(x::AbstractVector, args...) = (binwidth = wand_bins(x, args (minimum(x) - binwidth):binwidth:(maximum(x) + binwidth)) "Returns optimal histogram bin widths in accordance to Wand (1995)'s criterion'" -function wand_bins(x, scalest = :minim, gridsize = 401, range_x = extrema(x), trun = true) +function wand_bins(x, scalest = :minim, gridsize = 401, range_x = extrema(x), t_run = true) n = length(x) minx, maxx = range_x gpoints = range(minx, stop = maxx, length = gridsize) - gcounts = linbin(x, gpoints, trun = trun) + gcounts = linbin(x, gpoints; t_run) scalest = if scalest === :stdev sqrt(var(x)) @@ -156,7 +156,7 @@ function wand_bins(x, scalest = :minim, gridsize = 401, range_x = extrema(x), tr sb = (maxx - mean(x)) / scalest gpoints = range(sa, stop = sb, length = gridsize) - gcounts = linbin(sx, gpoints, trun = trun) + gcounts = linbin(sx, gpoints; t_run) hpi = begin alpha = ((2 / (11 * n))^(1 / 13)) * sqrt(2) @@ -175,7 +175,7 @@ function wand_bins(x, scalest = :minim, gridsize = 401, range_x = extrema(x), tr scalest * hpi end -function linbin(X, gpoints; trun = true) +function linbin(X, gpoints; t_run = true) n, M = length(X), length(gpoints) a, b = gpoints[1], gpoints[M] @@ -192,14 +192,9 @@ function linbin(X, gpoints; trun = true) gcnts[li + 1] += rem end - if !trun - if lt < 1 - gcnts[1] += 1 - end - - if li >= M - gcnts[M] += 1 - end + if !t_run + lt < 1 && (gcnts[1] += 1) + li ≥ M && (gcnts[M] += 1) end end gcnts diff --git a/docs/gallery/gaston/config.json b/docs/gallery/gaston/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/gaston/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/gaston/index.md b/docs/gallery/gaston/index.md deleted file mode 100644 index 53eb141d7..000000000 --- a/docs/gallery/gaston/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# Gaston - -To switch to the `Gaston` backend, you can use: - -```julia -using Plots -gaston() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/gr/config.json b/docs/gallery/gr/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/gr/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/gr/index.md b/docs/gallery/gr/index.md deleted file mode 100644 index e1a44c5b5..000000000 --- a/docs/gallery/gr/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# GR - -`GR` is the default backend for `Plots`. To explicitly specify the `GR` backend, you can use: - -```julia -using Plots -gr() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/inspectdr/config.json b/docs/gallery/inspectdr/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/inspectdr/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/inspectdr/index.md b/docs/gallery/inspectdr/index.md deleted file mode 100644 index dce74ce83..000000000 --- a/docs/gallery/inspectdr/index.md +++ /dev/null @@ -1,15 +0,0 @@ -# InspectDR - -!!! warn - `InspectDR` currently does not precompile on julia 1.10+. - -To switch to the `InspectDR` backend, you can use: - -```julia -using Plots -# inspectdr() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/pgfplotsx/config.json b/docs/gallery/pgfplotsx/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/pgfplotsx/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/pgfplotsx/index.md b/docs/gallery/pgfplotsx/index.md deleted file mode 100644 index 285c43e3f..000000000 --- a/docs/gallery/pgfplotsx/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# PGFPlotsX - -To switch to the `PGFPlotsX` backend, you can use: - -```julia -using Plots -pgfplotsx() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/plotlyjs/config.json b/docs/gallery/plotlyjs/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/plotlyjs/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/plotlyjs/index.md b/docs/gallery/plotlyjs/index.md deleted file mode 100644 index b2f8085a7..000000000 --- a/docs/gallery/plotlyjs/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# PlotlyJS - -To switch to the `PlotlyJS` backend, you can use: - -```julia -using Plots -plotlyjs() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/pythonplot/config.json b/docs/gallery/pythonplot/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/pythonplot/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/pythonplot/index.md b/docs/gallery/pythonplot/index.md deleted file mode 100644 index c35ce7f9e..000000000 --- a/docs/gallery/pythonplot/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# PythonPlot - -To switch to the `PythonPlot` backend, you can use: - -```julia -using Plots -pythonplot() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/gallery/unicodeplots/config.json b/docs/gallery/unicodeplots/config.json deleted file mode 100644 index d90906481..000000000 --- a/docs/gallery/unicodeplots/config.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "theme": "bulmagrid", - "properties":{ - "notebook": "false" - } -} diff --git a/docs/gallery/unicodeplots/index.md b/docs/gallery/unicodeplots/index.md deleted file mode 100644 index 32737ecea..000000000 --- a/docs/gallery/unicodeplots/index.md +++ /dev/null @@ -1,12 +0,0 @@ -# UnicodePlots - -To switch to the `UnicodePlots` backend, you can use: - -```julia -using Plots -unicodeplots() -``` - -The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. - -{{{democards}}} diff --git a/docs/make.jl b/docs/make.jl index 9b64dd913..1cec76cad 100644 --- a/docs/make.jl +++ b/docs/make.jl @@ -436,7 +436,7 @@ function generate_graph_attr_markdown() "Font size for the node labels and the edge labels.", "Shape of the nodes, choose from `:hexagon`, `:circle`, `:ellipse`, `:rect` or `:rectangle`.", "The size of nodes in the plot coordinates. Note that if `names` is not empty, then nodes will be scaled to fit the labels inside them.", - "The color of the nodes. If `nodecolor` is an integer, then it will be taken from the current color pallette. Otherwise, the user can pass any color that would be recognised by the Plots `color` attribute.", + "The color of the nodes. If `nodecolor` is an integer, then it will be taken from the current color palette. Otherwise, the user can pass any color that would be recognised by the Plots `color` attribute.", "The coordinates of the nodes.", "The method that GraphRecipes uses to produce an optimal layout, choose from `:spectral`, `:sfdp`, `:circular`, `:shell`, `:stress`, `:spring`, `:tree`, `:buchheim`, `:arcdiagram` or `:chorddiagram`. See [NetworkLayout](https://github.com/JuliaGraphs/NetworkLayout.jl) for further details.", "A layout algorithm that can be passed in by the user.", diff --git a/docs/src/GraphRecipes/introduction.md b/docs/src/GraphRecipes/introduction.md index 9ec455f11..7b49ffb5e 100644 --- a/docs/src/GraphRecipes/introduction.md +++ b/docs/src/GraphRecipes/introduction.md @@ -12,7 +12,7 @@ GraphRecipes can be installed with the package manager: ``` ## Usage -The main user interface is through the fuction `graphplot`: +The main user interface is through the function `graphplot`: ```@example graphintro using GraphRecipes, Plots diff --git a/docs/src/RecipesBase/types.md b/docs/src/RecipesBase/types.md index f21615837..80e6c7851 100644 --- a/docs/src/RecipesBase/types.md +++ b/docs/src/RecipesBase/types.md @@ -335,7 +335,7 @@ seriespie(rand(4, 2), layout = 2) ## Remarks Plot recipes and series recipes are actually very similar. -In fact, a pie recipe could be also implemented as a plot recipe by acessing the data through `plotattributes`. +In fact, a pie recipe could be also implemented as a plot recipe by accessing the data through `plotattributes`. ```@example types @recipe function f(::Type{Val{:plotpie}}, plt::AbstractPlot) diff --git a/docs/src/attributes.md b/docs/src/attributes.md index 5337e41e2..64d55aef4 100644 --- a/docs/src/attributes.md +++ b/docs/src/attributes.md @@ -19,7 +19,7 @@ plotattr(:Subplot) plotattr(:Axis) ``` -Once you acquire the list of attributes, you can either use the aliases of a specific attribute or investigate a specific attribut to print that attribute's aliases and its description. +Once you acquire the list of attributes, you can either use the aliases of a specific attribute or investigate a specific attribute to print that attribute's aliases and its description. ```@repl attr # Specific Attribute Example diff --git a/docs/src/backends.md b/docs/src/backends.md index d91c49ce7..fe2ed57ae 100644 --- a/docs/src/backends.md +++ b/docs/src/backends.md @@ -393,7 +393,7 @@ Pros: - Drag & drop Δ-markers (measure/display Δx, Δy & slope). - Designed with larger datasets in mind. - Responsive even with moderate (>200k points) datasets. - - Confirmed to handle 2GB datsets with reasonable speed on older desktop running Windows 7 (drag+pan of data area highly discouraged). + - Confirmed to handle 2GB datasets with reasonable speed on older desktop running Windows 7 (drag+pan of data area highly discouraged). Cons: @@ -509,7 +509,7 @@ Primary author: Tim Holy ### [Qwt](https://github.com/tbreloff/Qwt.jl) -My package which wraps PyQwt. Similar to PyPlot, it uses PyCall to convert calls to python. Though Qwt.jl was the "first draft" of Plots, the functionality is superceded by other backends, and it's not worth my time to maintain. +My package which wraps PyQwt. Similar to PyPlot, it uses PyCall to convert calls to python. Though Qwt.jl was the "first draft" of Plots, the functionality is supersded by other backends, and it's not worth my time to maintain. Primary author: Thomas Breloff diff --git a/docs/src/contributing.md b/docs/src/contributing.md index 2c0954a6a..f12ea8233 100644 --- a/docs/src/contributing.md +++ b/docs/src/contributing.md @@ -186,7 +186,7 @@ Many people have trouble with Git. More have trouble with Github. I think much Here are some guidelines for the development workflow (Note: Even if you've made 20 PRs to Plots in the past, please read this as it may be different than past guidelines): - **Commit to a branch that belongs to you.** Typically that means you should give your branches names that are unique to you, and that might include information on the feature you're developing. For example, I might choose to `git checkout -b tb-fonts` when starting work on fonts. -- **Open a PR against master.** `master` is the "bleeding edge". (Note: I used to recommend PRing to `dev`) +- **Open a PR against master.** `master` is the "bleeding edge". (Note: I used to recommend `PR`ing to `dev`) - **Only merge others changes when absolutely necessary.** You should prefer to use `git rebase origin/master` instead of `git merge origin/master`. A rebase replays your recent commits on top of the most recent `master`, avoiding complicated and messy merge commits and generally avoiding confusion. If you follow the first rule, then you likely won't get yourself in trouble. Rebase horror stories generally result when many people are working on the same branch. I find [this resource](https://git-scm.com/book/en/v2/Git-Branching-Rebasing) is great for understanding the important parts of `git rebase`. --- diff --git a/docs/src/input_data.md b/docs/src/input_data.md index 14b9e1970..5528b9891 100644 --- a/docs/src/input_data.md +++ b/docs/src/input_data.md @@ -73,7 +73,7 @@ As shown in the examples, you can plot a single polygon by using a single call t Now, let's say you're plotting `n` polygons grouped into `g` groups, with `n` > `g`. While you can use `plot` to draw separate polygons with each call, you cannot group two separate plots back into a single group. You'll end up with `n` groups in the legend, rather than `g` groups. -To adress this, you can use `NaN` as a path separator. A call to `plot` would then draw one path with disjoints The following code draws `n=4` rectangles in `g=2` groups. +To address this, you can use `NaN` as a path separator. A call to `plot` would then draw one path with disjoints The following code draws `n=4` rectangles in `g=2` groups. ```@example input_data using Plots diff --git a/docs/src/pipeline.md b/docs/src/pipeline.md index 3d67dc859..ebf8ae024 100644 --- a/docs/src/pipeline.md +++ b/docs/src/pipeline.md @@ -121,7 +121,7 @@ This hook gave us a nice way to swap out the input data and add custom visualiza Groups: When you'd like to split a data series into multiple plot series, you can use the `group` keyword. Attributes can be applied to the resulting series as if your data had been already separated into distinct input data. The `group` variable determines how to split the data and also assigns the legend label. -In this example, we split the data points into 3 groups randomly, and give them different marker shapes (`[:s :o :x]` are aliases for `:star5`, `:octagon`, and `:xcross`). The other attibutes (`:markersize` and `:markeralpha`) are shared. +In this example, we split the data points into 3 groups randomly, and give them different marker shapes (`[:s :o :x]` are aliases for `:star5`, `:octagon`, and `:xcross`). The other attributes (`:markersize` and `:markeralpha`) are shared. ```@example pipeline scatter(rand(100), group = rand(1:3, 100), marker = (10,0.3, [:s :o :x])) diff --git a/docs/src/recipes.md b/docs/src/recipes.md index a3510b6aa..a3cd30533 100644 --- a/docs/src/recipes.md +++ b/docs/src/recipes.md @@ -29,7 +29,7 @@ mutable struct MyVec end ``` -If `MyVec` was a subtype of AbstractVector, there would not be anything to do... it should "just work". However this isn't always desireable, and it would be nice if you could call `plot(10:20, myvec)` without having to personally define every possible combination of inputs. It this case, you'll want to use a special type of recipe signature: +If `MyVec` was a subtype of AbstractVector, there would not be anything to do... it should "just work". However this isn't always desirable, and it would be nice if you could call `plot(10:20, myvec)` without having to personally define every possible combination of inputs. It this case, you'll want to use a special type of recipe signature: ```julia @recipe f(::Type{MyVec}, myvec::MyVec) = myvec.v From 3e48f0a7dc7fca81d7786d8b97d506fdd90b075a Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 1 Nov 2024 18:04:34 +0100 Subject: [PATCH 2/5] add `codespell` action --- .github/workflows/codespell.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/codespell.yml diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..1bb6afa31 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,17 @@ +name: Run codespell on source files + +on: [pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + +jobs: + check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: codespell-project/actions-codespell@v2 + with: + ignore_words_list: nd,nax,linez,ist + only_warn: 0 From fa9bb084116279266d4e55f81b3fb7ff2663063f Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 1 Nov 2024 18:09:12 +0100 Subject: [PATCH 3/5] restore gallery --- docs/gallery/gaston/config.json | 6 ++++++ docs/gallery/gaston/index.md | 12 ++++++++++++ docs/gallery/gr/config.json | 6 ++++++ docs/gallery/gr/index.md | 12 ++++++++++++ docs/gallery/inspectdr/config.json | 6 ++++++ docs/gallery/inspectdr/index.md | 15 +++++++++++++++ docs/gallery/pgfplotsx/config.json | 6 ++++++ docs/gallery/pgfplotsx/index.md | 12 ++++++++++++ docs/gallery/plotlyjs/config.json | 6 ++++++ docs/gallery/plotlyjs/index.md | 12 ++++++++++++ docs/gallery/pythonplot/config.json | 6 ++++++ docs/gallery/pythonplot/index.md | 12 ++++++++++++ docs/gallery/unicodeplots/config.json | 6 ++++++ docs/gallery/unicodeplots/index.md | 12 ++++++++++++ 14 files changed, 129 insertions(+) create mode 100644 docs/gallery/gaston/config.json create mode 100644 docs/gallery/gaston/index.md create mode 100644 docs/gallery/gr/config.json create mode 100644 docs/gallery/gr/index.md create mode 100644 docs/gallery/inspectdr/config.json create mode 100644 docs/gallery/inspectdr/index.md create mode 100644 docs/gallery/pgfplotsx/config.json create mode 100644 docs/gallery/pgfplotsx/index.md create mode 100644 docs/gallery/plotlyjs/config.json create mode 100644 docs/gallery/plotlyjs/index.md create mode 100644 docs/gallery/pythonplot/config.json create mode 100644 docs/gallery/pythonplot/index.md create mode 100644 docs/gallery/unicodeplots/config.json create mode 100644 docs/gallery/unicodeplots/index.md diff --git a/docs/gallery/gaston/config.json b/docs/gallery/gaston/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/gaston/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/gaston/index.md b/docs/gallery/gaston/index.md new file mode 100644 index 000000000..53eb141d7 --- /dev/null +++ b/docs/gallery/gaston/index.md @@ -0,0 +1,12 @@ +# Gaston + +To switch to the `Gaston` backend, you can use: + +```julia +using Plots +gaston() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/gr/config.json b/docs/gallery/gr/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/gr/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/gr/index.md b/docs/gallery/gr/index.md new file mode 100644 index 000000000..e1a44c5b5 --- /dev/null +++ b/docs/gallery/gr/index.md @@ -0,0 +1,12 @@ +# GR + +`GR` is the default backend for `Plots`. To explicitly specify the `GR` backend, you can use: + +```julia +using Plots +gr() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/inspectdr/config.json b/docs/gallery/inspectdr/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/inspectdr/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/inspectdr/index.md b/docs/gallery/inspectdr/index.md new file mode 100644 index 000000000..dce74ce83 --- /dev/null +++ b/docs/gallery/inspectdr/index.md @@ -0,0 +1,15 @@ +# InspectDR + +!!! warn + `InspectDR` currently does not precompile on julia 1.10+. + +To switch to the `InspectDR` backend, you can use: + +```julia +using Plots +# inspectdr() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/pgfplotsx/config.json b/docs/gallery/pgfplotsx/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/pgfplotsx/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/pgfplotsx/index.md b/docs/gallery/pgfplotsx/index.md new file mode 100644 index 000000000..285c43e3f --- /dev/null +++ b/docs/gallery/pgfplotsx/index.md @@ -0,0 +1,12 @@ +# PGFPlotsX + +To switch to the `PGFPlotsX` backend, you can use: + +```julia +using Plots +pgfplotsx() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/plotlyjs/config.json b/docs/gallery/plotlyjs/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/plotlyjs/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/plotlyjs/index.md b/docs/gallery/plotlyjs/index.md new file mode 100644 index 000000000..b2f8085a7 --- /dev/null +++ b/docs/gallery/plotlyjs/index.md @@ -0,0 +1,12 @@ +# PlotlyJS + +To switch to the `PlotlyJS` backend, you can use: + +```julia +using Plots +plotlyjs() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/pythonplot/config.json b/docs/gallery/pythonplot/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/pythonplot/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/pythonplot/index.md b/docs/gallery/pythonplot/index.md new file mode 100644 index 000000000..c35ce7f9e --- /dev/null +++ b/docs/gallery/pythonplot/index.md @@ -0,0 +1,12 @@ +# PythonPlot + +To switch to the `PythonPlot` backend, you can use: + +```julia +using Plots +pythonplot() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} diff --git a/docs/gallery/unicodeplots/config.json b/docs/gallery/unicodeplots/config.json new file mode 100644 index 000000000..d90906481 --- /dev/null +++ b/docs/gallery/unicodeplots/config.json @@ -0,0 +1,6 @@ +{ + "theme": "bulmagrid", + "properties":{ + "notebook": "false" + } +} diff --git a/docs/gallery/unicodeplots/index.md b/docs/gallery/unicodeplots/index.md new file mode 100644 index 000000000..32737ecea --- /dev/null +++ b/docs/gallery/unicodeplots/index.md @@ -0,0 +1,12 @@ +# UnicodePlots + +To switch to the `UnicodePlots` backend, you can use: + +```julia +using Plots +unicodeplots() +``` + +The demos are generated from `Plots._examples`. Empty demos are features that this backend does not support. + +{{{democards}}} From c7a800b752c053e71a7206aca6fce1cdb2982030 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 1 Nov 2024 18:20:24 +0100 Subject: [PATCH 4/5] restrict benchmarks to master --- .github/workflows/benchmark.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 7ac728b57..2dd781f61 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -3,6 +3,7 @@ name: benchmarks on: workflow_dispatch: pull_request: + branches: [master] concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} From dc1db19e4ad7b0a121ff2ac616a255c51564f153 Mon Sep 17 00:00:00 2001 From: t-bltg Date: Fri, 1 Nov 2024 18:21:00 +0100 Subject: [PATCH 5/5] rename --- .github/workflows/codespell.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 1bb6afa31..1929bb81e 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -1,4 +1,4 @@ -name: Run codespell on source files +name: codespell on: [pull_request]