@@ -479,7 +479,7 @@ def _diff(x, *args, **kwargs):
479479
480480
481481def _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
0 commit comments