Skip to content

Commit

Permalink
correct spelling (JuliaPlots#390)
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg authored Oct 26, 2024
1 parent d00152b commit 17c1ba4
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ext/FreeTypeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -413,13 +413,13 @@ function UnicodePlots.render_string!(
end

function ft_init()
FT_LIB[1] != C_NULL && error("Freetype already initalized. init() called two times?")
FT_LIB[1] != C_NULL && error("Freetype already initialized. init() called two times ?")
FT_Init_FreeType(FT_LIB) == 0
end

function ft_done()
FT_LIB[1] == C_NULL &&
error("Library == CNULL. done() called before init(), or done called two times?")
error("Library == CNULL. done() called before init(), or done called two times ?")
err = FT_Done_FreeType(FT_LIB[1])
FT_LIB[1] = C_NULL
err == 0
Expand Down
2 changes: 1 addition & 1 deletion src/interface/barplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ $(arguments(
(
text = "the labels / captions of the bars",
heights = "the values / heights of the bars",
dict = "a dictonary in which the keys will be used as `text` and the values will be used as `heights`",
dict = "a dictionary in which the keys will be used as `text` and the values will be used as `heights`",
xscale = "`Function` or `Symbol` to transform the bar length before plotting: this effectively scales the `x`-axis without influencing the captions of the individual bars (use `xscale = :log10` for logscale)",
color = "`Vector` of colors, or scalar - $(DESCRIPTION[:color])",
maximum = "optional maximal height"
Expand Down
2 changes: 1 addition & 1 deletion src/interface/boxplot.jl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ $(arguments(
(
text = "the labels/captions of the boxes (optional)",
data = "a vector of vectors, with each inner vector representing a data series (choose a vector of vectors over a matrix to allow series of different lengths)",
dict = "a dictonary in which the keys will be used as `text` and the values will be used as `data`",
dict = "a dictionary in which the keys will be used as `text` and the values will be used as `data`",
color = "`Vector` of colors, or scalar - $(DESCRIPTION[:color])",
); remove = (:ylim, :yscale, :height, :grid)
))
Expand Down
16 changes: 8 additions & 8 deletions src/interface/spy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
# Description
Plots the sparsity pattern for the given matrix `A`. This means
that a scatterplot that resembles the matrix is drawn, in which
only the pixel for non-zero elements of the matrix are set.
If the parameters `width` and `height` are not explicitly
specified, then the function will attempt to preserve the aspect
ratio of the matrix, while also attempting to fit the resulting
plot withing the bounding box specified by `maxwidth` and `maxheight`.
Plots the sparsity pattern for the given matrix `A`.
This means that a scatterplot that resembles the matrix is drawn,
in which only the pixel for non-zero elements of the matrix are set.
If the parameters `width` and `height` are not explicitly specified,
then the function will attempt to preserve the aspect ratio of the matrix,
while also attempting to fit the resulting plot within the bounding box
specified by `maxwidth` and `maxheight`.
# Usage
Expand Down
2 changes: 1 addition & 1 deletion test/tst_common.jl
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ end
@test_throws ArgumentError UnicodePlots.colormode!(123456789)

_color_mode = UnicodePlots.colormode()
UnicodePlots.COLORMODE[] = Crayons.COLORS_16 # we only suport 8bit or 24bit, not 4bit (terminal dependent)
UnicodePlots.COLORMODE[] = Crayons.COLORS_16 # we only support 8bit or 24bit, not 4bit (terminal dependent)
@test_throws ArgumentError UnicodePlots.colormode()

UnicodePlots.colors256!()
Expand Down
2 changes: 1 addition & 1 deletion test/tst_freetype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ end
@test FTE.glyph_index(face, "A") == i
end

@testset "alignements" begin
@testset "alignments" begin
a = UnicodePlots.render_string!(
zeros(UInt8, 20, 100),
"helgo",
Expand Down

0 comments on commit 17c1ba4

Please sign in to comment.