Skip to content

Commit cb72bfa

Browse files
author
Niru Maheswaranathan
authored
Merge pull request #11 from nirum/codex/fix-misspelling-in-comments
Fix typos in ellipse comment
2 parents b27d8bb + d7d1357 commit cb72bfa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

jetplot/plots.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ def ellipse(x, y, n_std=3.0, facecolor="none", estimator="empirical", **kwargs):
340340

341341
pearson = cov[0, 1] / np.sqrt(cov[0, 0] * cov[1, 1])
342342
# Using a special case to obtain the eigenvalues of this
343-
# two-dimensionl dataset.
343+
# two-dimensional dataset.
344344
ell_radius_x = np.sqrt(1 + pearson)
345345
ell_radius_y = np.sqrt(1 - pearson)
346346
ellipse = Ellipse(
@@ -351,13 +351,13 @@ def ellipse(x, y, n_std=3.0, facecolor="none", estimator="empirical", **kwargs):
351351
**kwargs,
352352
)
353353

354-
# Calculating the stdandard deviation of x from
355-
# the squareroot of the variance and multiplying
354+
# Calculating the standard deviation of x from
355+
# the square root of the variance and multiplying
356356
# with the given number of standard deviations.
357357
scale_x = np.sqrt(cov[0, 0]) * n_std
358358
mean_x = np.mean(x)
359359

360-
# calculating the stdandard deviation of y ...
360+
# calculating the standard deviation of y ...
361361
scale_y = np.sqrt(cov[1, 1]) * n_std
362362
mean_y = np.mean(y)
363363

0 commit comments

Comments
 (0)