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

Skip to content

Commit 9be5d26

Browse files
committed
style_guide.rst table fix
getting_started.py language clarifications
1 parent 90c84c9 commit 9be5d26

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

doc/devel/style_guide.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,18 @@ not interchangeable.
2222
+------------------+--------------------------+--------------+--------------+
2323
| Term | Description | Correct | Incorrect |
2424
+==================+==========================+==============+==============+
25-
| Figure_ | Matplotlib working space |- One Figure |- One figure |
26-
| | for programming. |- 11 Figures |- 11 figures |
25+
| Figure_ | Matplotlib working space | - One Figure | - One figure |
26+
| | for programming. | - 11 Figures | - 11 figures |
2727
+------------------+--------------------------+--------------+--------------+
2828
| Axes_ | Subplots within Figure. | - One Axes | - One axes |
2929
| | Contains Figure elements | - Four Axes | - Four Axeses|
3030
| | and is responsible for | - 32 Axes | - 32 Axii |
3131
| | plotting and configuring | | |
3232
| | additional details. | | |
3333
+------------------+--------------------------+--------------+--------------+
34-
| Artist_ | Broad Matplotlib object | - One Artist | - One artist |
35-
| | that displays visuals. | - Two Artists| - Two artists|
34+
| Artist_ | Broad variety of | - One Artist | - One artist |
35+
| | Matplotlib objects that | - Two Artists| - Two artists|
36+
| | display visuals. | | |
3637
+------------------+--------------------------+--------------+--------------+
3738
| Axis_ | Human-readable single | - One Axis | - One Axis |
3839
| | dimensional object | object | - One axis |
@@ -145,7 +146,6 @@ reStructuredText standards
145146
- `reStructuredText Specifications <https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html>`_
146147
- `Quick Reference Document <https://docutils.sourceforge.io/docs/user/rst/quickref.html>`_
147148

148-
149149
Lists
150150
^^^^^
151151
Bulleted lists are for items that do not require sequencing. Numbered lists are
@@ -184,7 +184,7 @@ Markdown tables and the csv-table directive are not accepted.
184184
| | OK | Not OK | | | ------- | --------- | |
185185
| +----------+----------+ | | OK | Not OK | |
186186
| | |
187-
+--------------------------------+----------------------------------------|
187+
+--------------------------------+----------------------------------------+
188188
| :: | :: |
189189
| | |
190190
| +----------+----------+ | .. csv-table:: |

tutorials/introductory/getting_started.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@
229229
# Explicit: Object Oriented Programming (OOP)
230230
# --------------------------------------------
231231
#
232-
# Explicit programming for Matplotlib involves using a single instance of the
233-
# ``pyplot`` module. This unpacks a set of an explicit Figure and Axes.
234-
# More than one Axes is configurable; however, each Axes only corresponds to a
235-
# single Figure.
232+
# Explicit programming for Matplotlib involves calling the method ``subplots``
233+
# in the ``pyplot`` module once. This unpacks a group of an explicit Figure and
234+
# Axes. More than one Axes is configurable; however, each Axes only corresponds
235+
# to a single Figure.
236236
#
237237
# Each Axes has its own methods to graph data. In addition, each Axes
238238
# also uses separate methods to create and manage parts of a Figure. These
@@ -410,7 +410,7 @@
410410
# +=======================+==========================+========================+
411411
# | Visible elements from | Each specific Axes has | The ``pyplot`` module |
412412
# | rendered Figure. | its own method for | manages Artists based |
413-
# | | artists. | on most recent Figure |
413+
# | | Artists. | on most recent Figure |
414414
# | | | or Axes. |
415415
# +-----------------------+--------------------------+------------------------+
416416
#
@@ -655,7 +655,7 @@ def autopct_format(percent, group):
655655
# a percentage of the radius to place labels.
656656
wedgeprops=dict(width=0.3),
657657
# The wedgeprops keyword argument also takes dictionaries
658-
# to pass on to the artists. The float for width sets the
658+
# to pass on to the Artists. The float for width sets the
659659
# wedge size as a percentage of the radius starting from
660660
# the outer edge.
661661
shadow=True)
@@ -703,8 +703,8 @@ def autopct_format(percent, group):
703703
# argument is provided, the data acting as a percentage equivalent. The
704704
# ``autopct_format`` function requires two arguments, so ``partial`` takes
705705
# the argument for ``group`` and sets it to ``budget``. This smaller
706-
# signature object then behaves as a function with one fewer argument. For
707-
# details about the functools module, see
706+
# signature object then behaves as the same function with one fewer argument.
707+
# For details about the functools module, see
708708
# `functools
709709
# <https://docs.python.org/3/library/functools.html#module-functools>`_.
710710
#

0 commit comments

Comments
 (0)