diff --git a/.appveyor.yml b/.appveyor.yml index 91d5a022fd42..df7536f16c7e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -55,7 +55,7 @@ install: - conda create -q -n test-environment python=%PYTHON_VERSION% tk "pip<22.0" - activate test-environment # pull pywin32 from conda because on py38 there is something wrong with finding - # the dlls when insalled from pip + # the dlls when installed from pip - conda install -c conda-forge pywin32 # install pyqt from conda-forge - conda install -c conda-forge pyqt diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs index 0342a41065a4..33ff9446d8a6 100644 --- a/.git-blame-ignore-revs +++ b/.git-blame-ignore-revs @@ -6,3 +6,6 @@ c1a33a481b9c2df605bcb9bef9c19fe65c3dac21 # style: check-docstring-first pre-commit hook 046533797725293dfc2a6edb9f536b25f08aa636 + +# chore: fix spelling errors +686c9e5a413e31c46bb049407d5eca285bcab76d diff --git a/doc/README.txt b/doc/README.txt index 0334a4ff1cdb..0caf5e013c9b 100644 --- a/doc/README.txt +++ b/doc/README.txt @@ -14,7 +14,7 @@ documentation. All of the documentation is written using sphinx, a python documentation system built on top of ReST. This directory contains * users - the user documentation, e.g., installation, plotting tutorials, -configuration tips, faq, explaations, etc. +configuration tips, faq, explanations, etc. * devel - documentation for Matplotlib developers diff --git a/doc/_static/mpl.css b/doc/_static/mpl.css index 1cafdf14e3f1..2d26f8738406 100644 --- a/doc/_static/mpl.css +++ b/doc/_static/mpl.css @@ -145,7 +145,7 @@ hr.box-sep { } -/* multi colunm TOC */ +/* multi column TOC */ .contents ul { list-style-type: none; padding-left: 2em; diff --git a/doc/api/next_api_changes/behavior/22229-TAC.rst b/doc/api/next_api_changes/behavior/22229-TAC.rst index 22c8c1282a6a..2f60539e16fc 100644 --- a/doc/api/next_api_changes/behavior/22229-TAC.rst +++ b/doc/api/next_api_changes/behavior/22229-TAC.rst @@ -1,7 +1,7 @@ ArtistList proxies copy contents on iteration ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -When iterating over the contents of the the dynamically generated proxy lists +When iterating over the contents of the dynamically generated proxy lists for the Artist-type accessors (see :ref:`Behavioural API Changes 3.5 - Axes children combined`), a copy of the contents is made. This ensure that artists can safely be added or removed from the Axes while iterating over their children. diff --git a/doc/api/prev_api_changes/api_changes_0.65.rst b/doc/api/prev_api_changes/api_changes_0.65.rst index 43fffb1bcf4e..f9b9af732010 100644 --- a/doc/api/prev_api_changes/api_changes_0.65.rst +++ b/doc/api/prev_api_changes/api_changes_0.65.rst @@ -8,5 +8,5 @@ Changes for 0.65 connect and disconnect Did away with the text methods for angle since they were ambiguous. - fontangle could mean fontstyle (obligue, etc) or the rotation of the + fontangle could mean fontstyle (oblique, etc) or the rotation of the text. Use style and rotation instead. diff --git a/doc/api/prev_api_changes/api_changes_0.70.rst b/doc/api/prev_api_changes/api_changes_0.70.rst index b8094658b249..e30dfbb64954 100644 --- a/doc/api/prev_api_changes/api_changes_0.70.rst +++ b/doc/api/prev_api_changes/api_changes_0.70.rst @@ -6,4 +6,4 @@ Changes for 0.70 MplEvent factored into a base class Event and derived classes MouseEvent and KeyEvent - Removed definct set_measurement in wx toolbar + Removed defunct set_measurement in wx toolbar diff --git a/doc/api/prev_api_changes/api_changes_0.72.rst b/doc/api/prev_api_changes/api_changes_0.72.rst index 9529e396f356..bfb6fc124658 100644 --- a/doc/api/prev_api_changes/api_changes_0.72.rst +++ b/doc/api/prev_api_changes/api_changes_0.72.rst @@ -6,7 +6,7 @@ Changes for 0.72 - Line2D, Text, and Patch copy_properties renamed update_from and moved into artist base class - - LineCollecitons.color renamed to LineCollections.set_color for + - LineCollections.color renamed to LineCollections.set_color for consistency with set/get introspection mechanism, - pylab figure now defaults to num=None, which creates a new figure diff --git a/doc/api/prev_api_changes/api_changes_0.98.0.rst b/doc/api/prev_api_changes/api_changes_0.98.0.rst index c50b98cbab16..ba22e5f4fb0a 100644 --- a/doc/api/prev_api_changes/api_changes_0.98.0.rst +++ b/doc/api/prev_api_changes/api_changes_0.98.0.rst @@ -181,7 +181,7 @@ The ``Polar`` class has moved to :mod:`matplotlib.projections.polar`. .. [3] :meth:`matplotlib.axes.Axes.set_position` now accepts either four scalars or a :class:`matplotlib.transforms.Bbox` instance. -.. [4] Since the recfactoring allows for more than two scale types +.. [4] Since the refactoring allows for more than two scale types ('log' or 'linear'), it no longer makes sense to have a toggle. ``Axes.toggle_log_lineary()`` has been removed. diff --git a/doc/api/prev_api_changes/api_changes_1.5.0.rst b/doc/api/prev_api_changes/api_changes_1.5.0.rst index 5b67f36d5a64..1248b1dfd394 100644 --- a/doc/api/prev_api_changes/api_changes_1.5.0.rst +++ b/doc/api/prev_api_changes/api_changes_1.5.0.rst @@ -374,7 +374,7 @@ directly. patheffects.svg ~~~~~~~~~~~~~~~ - - remove ``get_proxy_renderer`` method from ``AbstarctPathEffect`` class + - remove ``get_proxy_renderer`` method from ``AbstractPathEffect`` class - remove ``patch_alpha`` and ``offset_xy`` from ``SimplePatchShadow`` diff --git a/doc/api/prev_api_changes/api_changes_2.2.0.rst b/doc/api/prev_api_changes/api_changes_2.2.0.rst index 68f4fb69575b..f13fe2a246f0 100644 --- a/doc/api/prev_api_changes/api_changes_2.2.0.rst +++ b/doc/api/prev_api_changes/api_changes_2.2.0.rst @@ -169,7 +169,7 @@ instead of `RuntimeError` when sizes of input lists don't match `matplotlib.figure.Figure.set_figwidth` and `matplotlib.figure.Figure.set_figheight` had the keyword argument ``forward=False`` by default, but `.figure.Figure.set_size_inches` now defaults -to ``forward=True``. This makes these functions conistent. +to ``forward=True``. This makes these functions consistent. Do not truncate svg sizes to nearest point diff --git a/doc/api/prev_api_changes/api_changes_3.1.0.rst b/doc/api/prev_api_changes/api_changes_3.1.0.rst index 3f961b03b844..3f41900abb53 100644 --- a/doc/api/prev_api_changes/api_changes_3.1.0.rst +++ b/doc/api/prev_api_changes/api_changes_3.1.0.rst @@ -337,7 +337,7 @@ match the array value type of the ``Path.codes`` array. LaTeX code in matplotlibrc file ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Previously, the rc file keys ``pgf.preamble`` and ``text.latex.preamble`` were -parsed using commmas as separators. This would break valid LaTeX code, such as:: +parsed using commas as separators. This would break valid LaTeX code, such as:: \usepackage[protrusion=true, expansion=false]{microtype} diff --git a/doc/api/prev_api_changes/api_changes_3.3.0/removals.rst b/doc/api/prev_api_changes/api_changes_3.3.0/removals.rst index 3f7c232e9800..36b63c6dcfc8 100644 --- a/doc/api/prev_api_changes/api_changes_3.3.0/removals.rst +++ b/doc/api/prev_api_changes/api_changes_3.3.0/removals.rst @@ -202,7 +202,7 @@ Arguments renamed to ``manage_ticks``. - The ``normed`` parameter of `~.Axes.hist2d` has been renamed to ``density``. - The ``s`` parameter of `.Annotation` has been renamed to ``text``. -- For all functions in `.bezier` that supported a ``tolerence`` parameter, this +- For all functions in `.bezier` that supported a ``tolerance`` parameter, this parameter has been renamed to ``tolerance``. - ``axis("normal")`` is not supported anymore. Use the equivalent ``axis("auto")`` instead. diff --git a/doc/api/prev_api_changes/api_changes_3.5.0/deprecations.rst b/doc/api/prev_api_changes/api_changes_3.5.0/deprecations.rst index 2132e0faf9db..7ce5132bc7fa 100644 --- a/doc/api/prev_api_changes/api_changes_3.5.0/deprecations.rst +++ b/doc/api/prev_api_changes/api_changes_3.5.0/deprecations.rst @@ -62,7 +62,7 @@ These methods convert from unix timestamps to matplotlib floats, but are not used internally to matplotlib, and should not be needed by end users. To convert a unix timestamp to datetime, simply use `datetime.datetime.utcfromtimestamp`, or to use NumPy `~numpy.datetime64` -``dt = np.datetim64(e*1e6, 'us')``. +``dt = np.datetime64(e*1e6, 'us')``. Auto-removal of grids by `~.Axes.pcolor` and `~.Axes.pcolormesh` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/doc/conf.py b/doc/conf.py index 596ade34f009..be6f11e1f4a6 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -5,7 +5,7 @@ # dir. # # The contents of this file are pickled, so don't put values in the namespace -# that aren't pickleable (module imports are okay, they're removed +# that aren't picklable (module imports are okay, they're removed # automatically). # # All configuration values have a default value; values that are commented out diff --git a/doc/devel/MEP/MEP28.rst b/doc/devel/MEP/MEP28.rst index 631be1e2b548..07b83c17800e 100644 --- a/doc/devel/MEP/MEP28.rst +++ b/doc/devel/MEP/MEP28.rst @@ -46,7 +46,7 @@ Detailed description Currently, the ``Axes.boxplot`` method accepts parameters that allow the users to specify medians and confidence intervals for each box that -will be drawn in the plot. These were provided so that avdanced users +will be drawn in the plot. These were provided so that advanced users could provide statistics computed in a different fashion that the simple method provided by matplotlib. However, handling this input requires complex logic to make sure that the forms of the data structure match what diff --git a/doc/devel/contributing.rst b/doc/devel/contributing.rst index 57b255d34a52..5023a7ecb640 100644 --- a/doc/devel/contributing.rst +++ b/doc/devel/contributing.rst @@ -298,7 +298,7 @@ Rules ~~~~~ - Deprecations are targeted at the next point.release (e.g. 3.x) -- Deprecated API is generally removed two two point-releases after introduction +- Deprecated API is generally removed two point-releases after introduction of the deprecation. Longer deprecations can be imposed by core developers on a case-by-case basis to give more time for the transition - The old API must remain fully functional during the deprecation period diff --git a/doc/devel/documenting_mpl.rst b/doc/devel/documenting_mpl.rst index 72f1bedd22d6..edfafe5e0909 100644 --- a/doc/devel/documenting_mpl.rst +++ b/doc/devel/documenting_mpl.rst @@ -269,7 +269,7 @@ generates a link like this: `matplotlib.collections.LineCollection`. have to use qualifiers like ``:class:``, ``:func:``, ``:meth:`` and the likes. Often, you don't want to show the full package and module name. As long as the -target is unanbigous you can simply leave them out: +target is unambiguous you can simply leave them out: .. code-block:: rst diff --git a/doc/devel/gitwash/development_workflow.rst b/doc/devel/gitwash/development_workflow.rst index 866e891314c2..d2917230d3ad 100644 --- a/doc/devel/gitwash/development_workflow.rst +++ b/doc/devel/gitwash/development_workflow.rst @@ -72,7 +72,7 @@ someone reviewing your branch to see what you are doing. Choose an informative name for the branch to remind yourself and the rest of us what the changes in the branch are for. For example ``add-ability-to-fly``, or -``buxfix-for-issue-42``. +``bugfix-for-issue-42``. :: diff --git a/doc/sphinxext/missing_references.py b/doc/sphinxext/missing_references.py index 6aa82a4dd17d..12d836f296f1 100644 --- a/doc/sphinxext/missing_references.py +++ b/doc/sphinxext/missing_references.py @@ -90,7 +90,7 @@ def get_location(node, app): Usually, this will be of the form "path/to/file:linenumber". Two special values can be emitted, "" for paths which are not contained in this source tree (e.g. docstrings included from - other modules) or "", inidcating that the sphinx application + other modules) or "", indicating that the sphinx application cannot locate the original source file (usually because an extension has injected text into the sphinx parsing engine). """ diff --git a/doc/sphinxext/redirect_from.py b/doc/sphinxext/redirect_from.py index 6a26fcc33262..ab57a3c422e6 100644 --- a/doc/sphinxext/redirect_from.py +++ b/doc/sphinxext/redirect_from.py @@ -69,7 +69,7 @@ class RedirectFromDomain(Domain): @property def redirects(self): - """The mapping of the redirectes.""" + """The mapping of the redirects.""" return self.data.setdefault('redirects', {}) def clear_doc(self, docnames): diff --git a/doc/users/faq/howto_faq.rst b/doc/users/faq/howto_faq.rst index 409b9e04e713..4f60b9e14fe3 100644 --- a/doc/users/faq/howto_faq.rst +++ b/doc/users/faq/howto_faq.rst @@ -117,7 +117,7 @@ You can also filter on class instances:: for o in fig.findobj(text.Text): o.set_fontstyle('italic') -.. _howto-supress_offset: +.. _howto-suppress_offset: Prevent ticklabels from having an offset ---------------------------------------- diff --git a/doc/users/installing/index.rst b/doc/users/installing/index.rst index 2291386699fa..9641575d5046 100644 --- a/doc/users/installing/index.rst +++ b/doc/users/installing/index.rst @@ -257,7 +257,7 @@ install Matplotlib with other useful Python software is to use the Anaconda_ Python scientific software collection, which includes Python itself and a wide range of libraries; if you need a library that is not available from the collection, you can install it yourself using standard methods such as *pip*. -See the Ananconda web page for installation support. +See the Anaconda web page for installation support. .. _system python packages: https://github.com/MacPython/wiki/wiki/Which-Python#system-python-and-extra-python-packages diff --git a/doc/users/prev_whats_new/changelog.rst b/doc/users/prev_whats_new/changelog.rst index 9f054a28b3ab..a3a22ea868ac 100644 --- a/doc/users/prev_whats_new/changelog.rst +++ b/doc/users/prev_whats_new/changelog.rst @@ -49,7 +49,7 @@ the `API changes <../../api/api_changes.html>`_. Fixed bug so radial plots can be saved as ps in py3k. 2014-06-01 - Changed the fmt kwarg of errorbar to support the the mpl convention that + Changed the fmt kwarg of errorbar to support the mpl convention that "none" means "don't draw it", and to default to the empty string, so that plotting of data points is done with the plot() function defaults. Deprecated use of the None object in place "none". @@ -125,7 +125,7 @@ the `API changes <../../api/api_changes.html>`_. 2014-03-24 Added bool kwarg (manage_xticks) to boxplot to enable/disable the - managemnet of the xlimits and ticks when making a boxplot. Default in True + management of the xlimits and ticks when making a boxplot. Default in True which maintains current behavior by default. 2014-03-23 @@ -194,7 +194,7 @@ the `API changes <../../api/api_changes.html>`_. memory. 2013-10-06 - Improve window and detrend functions in mlab, particulart support for 2D + Improve window and detrend functions in mlab, particular support for 2D arrays. 2013-10-06 @@ -262,7 +262,7 @@ the `API changes <../../api/api_changes.html>`_. 2013-04-15 Added 'axes.xmargin' and 'axes.ymargin' to rpParams to set default margins - on auto-scaleing. - TAC + on auto-scaling. - TAC 2013-04-16 Added patheffect support for Line2D objects. -JJL @@ -331,7 +331,7 @@ the `API changes <../../api/api_changes.html>`_. from that point forward. - PI 2012-11-16 - Added the funcction _get_rbga_face, which is identical to _get_rbg_face + Added the function _get_rbga_face, which is identical to _get_rbg_face except it return a (r,g,b,a) tuble, to line2D. Modified Line2D.draw to use _get_rbga_face to get the markerface color so that any alpha set by markerfacecolor will respected. - Thomas Caswell @@ -1488,7 +1488,7 @@ the `API changes <../../api/api_changes.html>`_. interface - GR 2009-02-04 - Some reorgnization of the legend code. anchored_text.py added as an + Some reorganization of the legend code. anchored_text.py added as an example. - JJL 2009-02-04 @@ -1675,7 +1675,7 @@ the `API changes <../../api/api_changes.html>`_. 2008-12-12 Preparations to eliminate maskedarray rcParams key: its use will now - generate a warning. Similarly, importing the obsolote numerix.npyma will + generate a warning. Similarly, importing the obsolete numerix.npyma will generate a warning. - EF 2008-12-12 @@ -1806,7 +1806,7 @@ the `API changes <../../api/api_changes.html>`_. 2008-11-11 Add 'pad_to' and 'sides' parameters to mlab.psd() to allow controlling of - zero padding and returning of negative frequency components, respecitively. + zero padding and returning of negative frequency components, respectively. These are added in a way that does not change the API. - RM 2008-11-10 @@ -2258,7 +2258,7 @@ the `API changes <../../api/api_changes.html>`_. align='edge' changed to center of bin - MM 2008-05-22 - Added support for ReST-based doumentation using Sphinx. Documents are + Added support for ReST-based documentation using Sphinx. Documents are located in doc/, and are broken up into a users guide and an API reference. To build, run the make.py files. Sphinx-0.4 is needed to build generate xml, which will be useful for rendering equations with mathml, use sphinx @@ -2737,7 +2737,7 @@ the `API changes <../../api/api_changes.html>`_. Fixed a bug in patches.Ellipse that was broken for aspect='auto'. Scale free ellipses now work properly for equal and auto on Agg and PS, and they fall back on a polygonal approximation for nonlinear transformations until - we convince oursleves that the spline approximation holds for nonlinear + we convince ourselves that the spline approximation holds for nonlinear transformations. Added unit/ellipse_compare.py to compare spline with vertex approx for both aspects. JDH @@ -3218,7 +3218,7 @@ the `API changes <../../api/api_changes.html>`_. The backend has been updated to use new wxPython functionality to provide fast blit() animation without the C++ accelerator. This requires wxPython - 2.8 or later. Previous versions of wxPython can use the C++ acclerator or + 2.8 or later. Previous versions of wxPython can use the C++ accelerator or the old pure Python routines. setup.py no longer builds the C++ accelerator when wxPython >= 2.8 is @@ -3293,7 +3293,7 @@ the `API changes <../../api/api_changes.html>`_. PickEvent - Details and examples in examples/pick_event_demo.py - JDH 2007-01-16 - Begun work on a new pick API using the mpl event handling frameowrk. + Begun work on a new pick API using the mpl event handling framework. Artists will define their own pick method with a configurable epsilon tolerance and return pick attrs. All artists that meet the tolerance threshold will fire a PickEvent with artist dependent attrs; e.g., a Line2D @@ -3450,7 +3450,7 @@ the `API changes <../../api/api_changes.html>`_. specified as a kwarg. - EF 2006-11-05 - Added broken_barh function for makring a sequence of horizontal bars broken + Added broken_barh function for making a sequence of horizontal bars broken by gaps -- see examples/broken_barh.py 2006-11-05 @@ -4386,7 +4386,7 @@ the `API changes <../../api/api_changes.html>`_. Released 0.85 2005-11-16 - Changed the default default linewidth in rc to 1.0 + Changed the default linewidth in rc to 1.0 2005-11-16 Replaced agg_to_gtk_drawable with pure pygtk pixbuf code in backend_gtkagg. @@ -4824,7 +4824,7 @@ the `API changes <../../api/api_changes.html>`_. 2005-05-27 Finally found the pesky agg bug (which Maxim was kind enough to fix within hours) that was causing a segfault in the win32 cached marker drawing. Now - windows users can get the enormouse performance benefits of caced markers + windows users can get the enormous performance benefits of cached markers w/o those occasional pesy screenshots. - JDH 2005-05-27 @@ -4851,7 +4851,7 @@ the `API changes <../../api/api_changes.html>`_. 2005-05-21 Fixed raster problem for small rasters with dvipng -- looks like it was a - premultipled alpha problem - JDH + premultiplied alpha problem - JDH 2005-05-20 Added linewidth and faceted kwarg to scatter to control edgewidth and @@ -4879,7 +4879,7 @@ the `API changes <../../api/api_changes.html>`_. 2005-05-12 Started work on TeX text for antigrain using pngdvi -- see examples/tex_demo.py and the new module matplotlib.texmanager. Rotated - text not supported and rendering small glyps is not working right yet. BUt + text not supported and rendering small glyphs is not working right yet. But large fontsizes and/or high dpi saved figs work great. 2005-05-10 @@ -4917,7 +4917,7 @@ the `API changes <../../api/api_changes.html>`_. 2005-05-04 Added NewScalarFormatter. Improved formatting of ticklabels, scientific - notation, and the ability to plot large large numbers with small ranges, by + notation, and the ability to plot large numbers with small ranges, by determining a numerical offset. See ticker.NewScalarFormatter for more details. -DSD @@ -5009,7 +5009,7 @@ the `API changes <../../api/api_changes.html>`_. Applied boxplot and OSX font search patches 2005-03-27 - Added ft2font NULL check to fix Japanase font bug - JDH + Added ft2font NULL check to fix Japanese font bug - JDH 2005-03-27 Added sprint legend patch plus John Gill's tests and fix -- see @@ -5164,7 +5164,7 @@ the `API changes <../../api/api_changes.html>`_. 2005-02-09 backend renderer draw_lines now has transform in backend, as in - draw_markers; use numerix in _backend_agg, aded small line optimization to + draw_markers; use numerix in _backend_agg, added small line optimization to agg 2005-02-09 @@ -5588,7 +5588,7 @@ the `API changes <../../api/api_changes.html>`_. 2004-10-31 backend_ps.py: clean up the generated PostScript code, use the PostScript - stack to hold itermediate values instead of storing them in the dictionary. + stack to hold intermediate values instead of storing them in the dictionary. - JV 2004-10-30 @@ -5892,7 +5892,7 @@ the `API changes <../../api/api_changes.html>`_. Use imshow(blah, blah, extent=(xmin, xmax, ymin, ymax) instead - JDH 2004-07-12 - Added prototype for new nav bar with codifed event handling. Use + Added prototype for new nav bar with codified event handling. Use mpl_connect rather than connect for matplotlib event handling. toolbar style determined by rc toolbar param. backend status: gtk: prototype, wx: in progress, tk: not started - JDH @@ -6200,7 +6200,7 @@ the `API changes <../../api/api_changes.html>`_. WX backends. - PEB 2004-04-16 - Added get- and set_fontstyle msethods. - PEB + Added get- and set_fontstyle methods. - PEB 2004-04-10 Mathtext fixes: scaling with dpi, - JDH @@ -6285,7 +6285,7 @@ This is the Old, stale, never used changelog Added a new line type '|' which is a vline. syntax is plot(x, Y, '|') where y.shape = len(x),2 and each row gives the ymin,ymax for the respective values of x. Previously I had implemented vlines as a list of - lines, but I needed the efficientcy of the numeric clipping for large + lines, but I needed the efficiency of the numeric clipping for large numbers of vlines outside the viewport, so I wrote a dedicated class Vline2D which derives from Line2D @@ -6298,7 +6298,7 @@ This is the Old, stale, never used changelog 2003-05-28 Changed figure rendering to draw form a pixmap to reduce flicker. See - examples/system_monitor.py for an example where the plot is continusouly + examples/system_monitor.py for an example where the plot is continuously updated w/o flicker. This example is meant to simulate a system monitor that shows free CPU, RAM, etc... @@ -6313,7 +6313,7 @@ This is the Old, stale, never used changelog Added figure text with new example examples/figtext.py 2003-08-27 - Fixed bugs i figure text with font override dictionairies and fig text that + Fixed bugs in figure text with font override dictionaries and fig text that was placed outside the window bounding box 2003-09-01 through 2003-09-15 diff --git a/doc/users/prev_whats_new/whats_new_1.0.rst b/doc/users/prev_whats_new/whats_new_1.0.rst index af078f2a734d..ab902977cb1e 100644 --- a/doc/users/prev_whats_new/whats_new_1.0.rst +++ b/doc/users/prev_whats_new/whats_new_1.0.rst @@ -45,7 +45,7 @@ indexing (starts with 0). e.g.:: See :doc:`/gallery/subplots_axes_and_figures/subplot` for several code examples. -Contour fixes and and triplot +Contour fixes and triplot ----------------------------- Ian Thomas has fixed a long-standing bug that has vexed our most diff --git a/doc/users/prev_whats_new/whats_new_1.3.rst b/doc/users/prev_whats_new/whats_new_1.3.rst index 383c70938655..855235069917 100644 --- a/doc/users/prev_whats_new/whats_new_1.3.rst +++ b/doc/users/prev_whats_new/whats_new_1.3.rst @@ -101,7 +101,7 @@ Updated Axes3D.contour methods Damon McDougall updated the :meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.tricontour` and :meth:`~mpl_toolkits.mplot3d.axes3d.Axes3D.tricontourf` methods to allow 3D -contour plots on abitrary unstructured user-specified triangulations. +contour plots on arbitrary unstructured user-specified triangulations. .. figure:: ../../gallery/mplot3d/images/sphx_glr_tricontour3d_001.png :target: ../../gallery/mplot3d/tricontour3d.html diff --git a/doc/users/prev_whats_new/whats_new_2.2.rst b/doc/users/prev_whats_new/whats_new_2.2.rst index 3dbe6482fd87..77b9056048f4 100644 --- a/doc/users/prev_whats_new/whats_new_2.2.rst +++ b/doc/users/prev_whats_new/whats_new_2.2.rst @@ -60,7 +60,7 @@ New ``figure`` kwarg for ``GridSpec`` In order to facilitate ``constrained_layout``, ``GridSpec`` now accepts a ``figure`` keyword. This is backwards compatible, in that not supplying this will simply cause ``constrained_layout`` to not operate on the subplots -orgainzed by this ``GridSpec`` instance. Routines that use ``GridSpec`` (e.g. +organized by this ``GridSpec`` instance. Routines that use ``GridSpec`` (e.g. ``fig.subplots``) have been modified to pass the figure to ``GridSpec``. diff --git a/examples/axes_grid1/demo_anchored_direction_arrows.py b/examples/axes_grid1/demo_anchored_direction_arrows.py index cdf16dc05754..24d3ddfcc4ad 100644 --- a/examples/axes_grid1/demo_anchored_direction_arrows.py +++ b/examples/axes_grid1/demo_anchored_direction_arrows.py @@ -42,7 +42,7 @@ # Rotated arrow fontprops = fm.FontProperties(family='serif') -roatated_arrow = AnchoredDirectionArrows( +rotated_arrow = AnchoredDirectionArrows( ax.transAxes, '30', '120', loc='center', @@ -50,7 +50,7 @@ angle=30, fontproperties=fontprops ) -ax.add_artist(roatated_arrow) +ax.add_artist(rotated_arrow) # Altering arrow directions a1 = AnchoredDirectionArrows( diff --git a/examples/images_contours_and_fields/plot_streamplot.py b/examples/images_contours_and_fields/plot_streamplot.py index 968e632f0ba2..dd99e8b66b99 100644 --- a/examples/images_contours_and_fields/plot_streamplot.py +++ b/examples/images_contours_and_fields/plot_streamplot.py @@ -72,7 +72,7 @@ ax5 = fig.add_subplot(gs[2, 1]) ax5.streamplot(X, Y, U, V, broken_streamlines=False) -ax5.set_title('Streamplot with with unbroken streamlines') +ax5.set_title('Streamplot with unbroken streamlines') plt.tight_layout() plt.show() diff --git a/examples/lines_bars_and_markers/fill.py b/examples/lines_bars_and_markers/fill.py index e3419e805475..79642a9e5ed5 100644 --- a/examples/lines_bars_and_markers/fill.py +++ b/examples/lines_bars_and_markers/fill.py @@ -3,7 +3,7 @@ Filled polygon ============== -`~.Axes.fill()` draws a filled polygon based based on lists of point +`~.Axes.fill()` draws a filled polygon based on lists of point coordinates *x*, *y*. This example uses the `Koch snowflake`_ as an example polygon. diff --git a/examples/lines_bars_and_markers/fill_between_demo.py b/examples/lines_bars_and_markers/fill_between_demo.py index cc9d4ddab11a..79aef67ab4d9 100644 --- a/examples/lines_bars_and_markers/fill_between_demo.py +++ b/examples/lines_bars_and_markers/fill_between_demo.py @@ -114,7 +114,7 @@ # ------------------------------------------------------------ # The same selection mechanism can be applied to fill the full vertical height # of the axes. To be independent of y-limits, we add a transform that -# interprets the x-values in data coorindates and the y-values in axes +# interprets the x-values in data coordinates and the y-values in axes # coordinates. # # The following example marks the regions in which the y-data are above a diff --git a/examples/pyplots/pyplot_simple.py b/examples/pyplots/pyplot_simple.py index 7ecdcd406b21..414e5ae4f7ab 100644 --- a/examples/pyplots/pyplot_simple.py +++ b/examples/pyplots/pyplot_simple.py @@ -3,7 +3,7 @@ Pyplot Simple ============= -A very simple pyplot where a list of numbers are ploted against their +A very simple pyplot where a list of numbers are plotted against their index. Creates a straight line due to the rate of change being 1 for both the X and Y axis. """ diff --git a/examples/scales/symlog_demo.py b/examples/scales/symlog_demo.py index e9cdfff5355e..6c5f04ade8d6 100644 --- a/examples/scales/symlog_demo.py +++ b/examples/scales/symlog_demo.py @@ -38,7 +38,7 @@ # It should be noted that the coordinate transform used by ``symlog`` # has a discontinuous gradient at the transition between its linear # and logarithmic regions. The ``asinh`` axis scale is an alternative -# technique that may avoid visual artifacts caused by these disconinuities. +# technique that may avoid visual artifacts caused by these discontinuities. ############################################################################### # diff --git a/examples/specialty_plots/radar_chart.py b/examples/specialty_plots/radar_chart.py index 48ca607a2df3..21519137df9a 100644 --- a/examples/specialty_plots/radar_chart.py +++ b/examples/specialty_plots/radar_chart.py @@ -131,7 +131,7 @@ def example_data(): # Organic Carbon fraction 1 (OC) # Organic Carbon fraction 2 (OC2) # Organic Carbon fraction 3 (OC3) - # Pyrolized Organic Carbon (OP) + # Pyrolyzed Organic Carbon (OP) # 2)Inclusion of gas-phase specie carbon monoxide (CO) # 3)Inclusion of gas-phase specie ozone (O3). # 4)Inclusion of both gas-phase species is present... diff --git a/examples/statistics/confidence_ellipse.py b/examples/statistics/confidence_ellipse.py index b5d3b4793c79..c67da152ad7d 100644 --- a/examples/statistics/confidence_ellipse.py +++ b/examples/statistics/confidence_ellipse.py @@ -67,19 +67,19 @@ def confidence_ellipse(x, y, ax, n_std=3.0, facecolor='none', **kwargs): cov = np.cov(x, y) pearson = cov[0, 1]/np.sqrt(cov[0, 0] * cov[1, 1]) # Using a special case to obtain the eigenvalues of this - # two-dimensionl dataset. + # two-dimensional dataset. ell_radius_x = np.sqrt(1 + pearson) ell_radius_y = np.sqrt(1 - pearson) ellipse = Ellipse((0, 0), width=ell_radius_x * 2, height=ell_radius_y * 2, facecolor=facecolor, **kwargs) - # Calculating the stdandard deviation of x from + # Calculating the standard deviation of x from # the squareroot of the variance and multiplying # with the given number of standard deviations. scale_x = np.sqrt(cov[0, 0]) * n_std mean_x = np.mean(x) - # calculating the stdandard deviation of y ... + # calculating the standard deviation of y ... scale_y = np.sqrt(cov[1, 1]) * n_std mean_y = np.mean(y) @@ -97,7 +97,7 @@ def confidence_ellipse(x, y, ax, n_std=3.0, facecolor='none', **kwargs): # A helper function to create a correlated dataset # """""""""""""""""""""""""""""""""""""""""""""""" # -# Creates a random two-dimesional dataset with the specified +# Creates a random two-dimensional dataset with the specified # two-dimensional mean (mu) and dimensions (scale). # The correlation can be controlled by the param 'dependency', # a 2x2 matrix. diff --git a/examples/user_interfaces/README.txt b/examples/user_interfaces/README.txt index d526adc9d65d..75b469da7cf6 100644 --- a/examples/user_interfaces/README.txt +++ b/examples/user_interfaces/README.txt @@ -8,6 +8,6 @@ following the embedding_in_SOMEGUI.py examples here. Currently Matplotlib supports PyQt/PySide, PyGObject, Tkinter, and wxPython. When embedding Matplotlib in a GUI, you must use the Matplotlib API -directly rather than the pylab/pyplot proceedural interface, so take a +directly rather than the pylab/pyplot procedural interface, so take a look at the examples/api directory for some example code working with the API. diff --git a/lib/matplotlib/_animation_data.py b/lib/matplotlib/_animation_data.py index d30649cff1c8..4bf2ae3148d2 100644 --- a/lib/matplotlib/_animation_data.py +++ b/lib/matplotlib/_animation_data.py @@ -1,4 +1,4 @@ -# Javascript template for HTMLWriter +# JavaScript template for HTMLWriter JS_INCLUDE = """ diff --git a/lib/matplotlib/_mathtext.py b/lib/matplotlib/_mathtext.py index 091d630b9d34..51b2736407d2 100644 --- a/lib/matplotlib/_mathtext.py +++ b/lib/matplotlib/_mathtext.py @@ -757,16 +757,16 @@ class FontConstantsBase: # superscript is present sub2 = 0.5 - # Percentage of x-height that sub/supercripts are offset relative to the + # Percentage of x-height that sub/superscripts are offset relative to the # nucleus edge for non-slanted nuclei delta = 0.025 # Additional percentage of last character height above 2/3 of the - # x-height that supercripts are offset relative to the subscript + # x-height that superscripts are offset relative to the subscript # for slanted nuclei delta_slanted = 0.2 - # Percentage of x-height that supercripts and subscripts are offset for + # Percentage of x-height that superscripts and subscripts are offset for # integrals delta_integral = 0.1 @@ -1146,9 +1146,9 @@ def hpack(self, w=0., m='additional'): self.glue_ratio = 0. return if x > 0.: - self._set_glue(x, 1, total_stretch, "Overfull") + self._set_glue(x, 1, total_stretch, "Overful") else: - self._set_glue(x, -1, total_shrink, "Underfull") + self._set_glue(x, -1, total_shrink, "Underful") class Vlist(List): @@ -1225,9 +1225,9 @@ def vpack(self, h=0., m='additional', l=np.inf): return if x > 0.: - self._set_glue(x, 1, total_stretch, "Overfull") + self._set_glue(x, 1, total_stretch, "Overful") else: - self._set_glue(x, -1, total_shrink, "Underfull") + self._set_glue(x, -1, total_shrink, "Underful") class Rule(Box): diff --git a/lib/matplotlib/axes/_base.py b/lib/matplotlib/axes/_base.py index 6daad3ca450a..72213164f4c0 100644 --- a/lib/matplotlib/axes/_base.py +++ b/lib/matplotlib/axes/_base.py @@ -738,7 +738,7 @@ def get_window_extent(self, renderer=None, *args, **kwargs): Return the Axes bounding box in display space; *args* and *kwargs* are empty. - This bounding box does not include the spines, ticks, ticklables, + This bounding box does not include the spines, ticks, ticklabels, or other labels. For a bounding box including these elements use `~matplotlib.axes.Axes.get_tightbbox`. @@ -2398,7 +2398,7 @@ def _update_patch_limits(self, patch): for curve, code in p.iter_bezier(): # Get distance along the curve of any extrema _, dzeros = curve.axis_aligned_extrema() - # Calculate vertcies of start, end and any extrema in between + # Calculate vertices of start, end and any extrema in between vertices.append(curve([0, *dzeros, 1])) if len(vertices): diff --git a/lib/matplotlib/axis.py b/lib/matplotlib/axis.py index cb983dfd86c1..3f5747f39079 100644 --- a/lib/matplotlib/axis.py +++ b/lib/matplotlib/axis.py @@ -1796,7 +1796,7 @@ def set_pickradius(self, pickradius): """ self.pickradius = pickradius - # Helper for set_ticklabels. Defining it here makes it pickleable. + # Helper for set_ticklabels. Defining it here makes it picklable. @staticmethod def _format_with_dict(tickd, x, pos): return tickd.get(x, "") diff --git a/lib/matplotlib/backends/backend_webagg_core.py b/lib/matplotlib/backends/backend_webagg_core.py index 286305f1caba..fd90984c347c 100644 --- a/lib/matplotlib/backends/backend_webagg_core.py +++ b/lib/matplotlib/backends/backend_webagg_core.py @@ -308,7 +308,7 @@ def _handle_mouse(self, event): y = event['y'] y = self.get_renderer().height - y - # Javascript button numbers and matplotlib button numbers are + # JavaScript button numbers and matplotlib button numbers are # off by 1 button = event['button'] + 1 diff --git a/lib/matplotlib/backends/web_backend/ipython_inline_figure.html b/lib/matplotlib/backends/web_backend/ipython_inline_figure.html index 9cc6aa9020e2..b941d352a7d6 100644 --- a/lib/matplotlib/backends/web_backend/ipython_inline_figure.html +++ b/lib/matplotlib/backends/web_backend/ipython_inline_figure.html @@ -2,7 +2,7 @@ websocket server, so we have to get in client-side and fetch our resources that way. -->