Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3abedb1

Browse files
committed
Fix typos
1 parent 4911e3f commit 3abedb1

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

examples/user_interfaces/interactive_sgskip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def attr_matches(self, text):
8484
Assuming the text is of the form NAME.NAME....[NAME], and is
8585
evaluatable in the globals of __main__, it will be evaluated
8686
and its attributes (as revealed by dir()) are used as possible
87-
completions. (For class instances, class members are are also
87+
completions. (For class instances, class members are also
8888
considered.)
8989
9090
WARNING: this can still invoke arbitrary C code, if an object

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2315,7 +2315,7 @@ def stem(self, *args, **kwargs):
23152315
23162316
A stem plot plots vertical lines (using *linefmt*) at each *x*
23172317
location from the baseline to *y*, and places a marker there
2318-
using *markerfmt*. A horizontal line at 0 is is plotted using
2318+
using *markerfmt*. A horizontal line at 0 is plotted using
23192319
*basefmt*.
23202320
23212321
If no *x* values are provided, the default is (0, 1, ..., len(y) - 1)

lib/matplotlib/contour.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ def calc_label_rot_and_inline(self, slc, ind, lw, lc=None, spacing=5):
452452

453453
# Round to integer values but keep as float
454454
# To allow check against nan below
455-
# Ignore nans here to avoid throwing an error on on Appveyor build
455+
# Ignore nans here to avoid throwing an error on Appveyor build
456456
# (can possibly be removed when build uses numpy 1.13)
457457
with np.errstate(invalid='ignore'):
458458
I = [np.floor(I[0]), np.ceil(I[1])]

lib/matplotlib/tests/test_image.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def test_rasterize_dpi():
378378
# It plots a rasterized line and a normal image with implot. So it will catch
379379
# when images end up in the wrong place in case of non-standard dpi setting.
380380
# Instead of high-res rasterization i use low-res. Therefore the fact that the
381-
# resolution is non-standard is is easily checked by image_comparison.
381+
# resolution is non-standard is easily checked by image_comparison.
382382
import numpy as np
383383
import matplotlib.pyplot as plt
384384

tutorials/01_introductory/usage.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def my_plotter(ax, data1, data2, param_dict):
424424
# and pycairo_ or cairocffi_; Python2 only)
425425
# GTK3Cairo Cairo rendering to a :term:`GTK` 3.x canvas (requires PyGObject_
426426
# and pycairo_ or cairocffi_)
427-
# WXAgg Agg rendering to to a :term:`wxWidgets` canvas
427+
# WXAgg Agg rendering to a :term:`wxWidgets` canvas
428428
# (requires wxPython_)
429429
# WX Native :term:`wxWidgets` drawing to a :term:`wxWidgets` Canvas
430430
# (not recommended and deprecated in 2.0) (requires wxPython_)

tutorials/text/usetex.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
eps file. This step produces results which may be unacceptable to some users,
9999
because the text is coarsely rasterized and converted to bitmaps, which are not
100100
scalable like standard postscript, and the text is not searchable. One
101-
workaround is to to set ``ps.distiller.res`` to a higher value (perhaps 6000)
101+
workaround is to set ``ps.distiller.res`` to a higher value (perhaps 6000)
102102
in your rc settings, which will produce larger files but may look better and
103103
scale reasonably. A better workaround, which requires Poppler_ or Xpdf_, can be
104104
activated by changing the ``ps.usedistiller`` rc setting to ``xpdf``. This

0 commit comments

Comments
 (0)