Skip to content

Commit c6d026b

Browse files
committed
fix spelling
1 parent 3a1a946 commit c6d026b

File tree

7 files changed

+16
-16
lines changed

7 files changed

+16
-16
lines changed

justfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ publish: tag upload
1919

2020
clean:
2121
@find . | grep -E "(__pycache__|\.pyc|\.pyo$)" | xargs rm -rf
22-
@rm -rf src/*.egg-info/ build/ dist/ .tox/
22+
@rm -rf src/*.egg-info/ build/ dist/ .tox/ ./doc/_build/
2323

2424
format:
2525
isort .

src/tikzplotlib/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -830,7 +830,7 @@ def _gcd_array(X):
830830

831831
def _gcd(a, b):
832832
"""Euclidean algorithm for calculating the GCD of two numbers a, b.
833-
This algoritm also works for real numbers:
833+
This algorithm also works for real numbers:
834834
Find the greatest number h such that a and b are integer multiples of h.
835835
"""
836836
# Keep the tolerance somewhat significantly above machine precision as otherwise

src/tikzplotlib/_cleanfigure.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ def _diff(x, *args, **kwargs):
479479

480480

481481
def _remove_NaNs(data):
482-
"""Removes superflous NaNs in the data, i.e. those at the end/beginning of the data and consecutive ones.
482+
"""Removes superfluous NaNs in the data, i.e. those at the end/beginning of the data and consecutive ones.
483483
484484
:param linehandle: matplotlib linehandle object
485485
@@ -799,7 +799,7 @@ def _simplify_line(
799799
pixelization otherwise. Changes are visually negligible at the target
800800
resolution.
801801
802-
The target resolution is either specificed as the number of PPI or as
802+
The target resolution is either specified as the number of PPI or as
803803
the [Width, Height] of the figure in pixels.
804804
A scalar value of INF or 0 disables path simplification.
805805
(default = 600)
@@ -849,7 +849,7 @@ def _simplify_line(
849849
yPixelWidth = 1 / yToPix
850850
tol = min(xPixelWidth, yPixelWidth)
851851

852-
# Split up lines which are seperated by NaNs
852+
# Split up lines which are separated by NaNs
853853
id_nan = np.logical_or(np.isnan(xDataVis), np.isnan(yDataVis))
854854

855855
# If lines were separated by a NaN, diff(~id_nan) would give 1 for
@@ -983,7 +983,7 @@ def _opheim_simplify(x, y, tol):
983983
:type x: np.ndarray
984984
:param y: y coordinates of path to simplify. Shape [N, ]
985985
:type y: np.ndarray
986-
:param tol: scalar float specifiying the tolerance for path simplification
986+
:param tol: scalar float specifying the tolerance for path simplification
987987
:type tol: float
988988
:returns: boolean array of shape [N, ] that masks out elements that need not be drawn
989989
:rtype: np.ndarray
@@ -1096,7 +1096,7 @@ def _segment_visible(data, dataIsInBox, xLim, yLim):
10961096
10971097
:param data: array of data points. Shape [N, 2]
10981098
:type data: np.ndarray
1099-
:param dataIsInBox: boolen mask that specifies if data point lies within visual box
1099+
:param dataIsInBox: boolean mask that specifies if data point lies within visual box
11001100
:type dataIxInBox: np.ndarray
11011101
:param xLim: x axes limits
11021102
:type xLim: list, np.array

src/tikzplotlib/_hatches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
import warnings
1919

20-
BAD_MP_HATCH = ["o", "O"] # Bad hatch/pattern correspondance
20+
BAD_MP_HATCH = ["o", "O"] # Bad hatch/pattern correspondence
2121
UNUSED_PGF_PATTERN = ["dots"]
2222
_MP_HATCH2PGF_PATTERN = {
2323
"-": "horizontal lines",
@@ -80,7 +80,7 @@ def __validate_hatch(hatch):
8080

8181
def _mpl_hatch2pgfp_pattern(data, hatch, color_name, color_rgba):
8282
r"""
83-
Translates a hatch from matplotlib to the corresponding patten in PGFPlots.
83+
Translates a hatch from matplotlib to the corresponding pattern in PGFPlots.
8484
8585
Input:
8686
hatch - str, like {'/', '\', '|', '-', '+', 'x', 'o', 'O', '.', '*'}

tests/test_barchart_errorbars.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
""" Bar Chart With Errorbar test
22
This tests plots a bar chart with error bars. The errorbars need to be drawn
3-
at the correct z-order to be sucessful.
3+
at the correct z-order to be successful.
44
55
"""
66
import matplotlib.pyplot as plt

tests/test_cleanfigure.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def test_2D_in_3D(self):
364364
class Test_lineplot_markers:
365365
def test_line_no_markers(self):
366366
"""test high-level usage for simple example.
367-
Test is successfull if generated tikz code saves correct amount of lines
367+
Test is successful if generated tikz code saves correct amount of lines
368368
"""
369369
x = np.linspace(1, 100, 20)
370370
y = np.linspace(1, 100, 20)
@@ -390,7 +390,7 @@ def test_line_no_markers(self):
390390

391391
def test_no_line_markers(self):
392392
"""test high-level usage for simple example.
393-
Test is successfull if generated tikz code saves correct amount of lines
393+
Test is successful if generated tikz code saves correct amount of lines
394394
"""
395395
x = np.linspace(1, 100, 20)
396396
y = np.linspace(1, 100, 20)
@@ -416,7 +416,7 @@ def test_no_line_markers(self):
416416

417417
def test_line_markers(self):
418418
"""test high-level usage for simple example.
419-
Test is successfull if generated tikz code saves correct amount of lines
419+
Test is successful if generated tikz code saves correct amount of lines
420420
"""
421421
x = np.linspace(1, 100, 20)
422422
y = np.linspace(1, 100, 20)

tests/test_legends2.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ def plot():
88
t1 = np.arange(0.0, 2.0, 0.4)
99
t2 = np.arange(0.0, 2.0, 0.4)
1010

11-
# note that plot returns a list of lines. The 'l1, = plot' usage
12-
# extracts the first element of the list inot l1 using tuple unpacking.
13-
# So l1 is a Line2D instance, not a sequence of lines
11+
# note that plot returns a list of lines. The 'l1, = plot' usage extracts the
12+
# first element of the list into l1 using tuple unpacking. So l1 is a Line2D
13+
# instance, not a sequence of lines
1414
(l1,) = axes[k].plot(t2, np.exp(-t2), linewidth=0.5)
1515
axes[k].plot(t2, np.sin(2 * np.pi * t2), "--go", t1, np.log(1 + t1), ".")
1616
axes[k].plot(t2, np.exp(-t2) * np.sin(2 * np.pi * t2), "rs-.")

0 commit comments

Comments
 (0)