@@ -19,28 +19,34 @@ There are several key terms in Matplotlib that are standards for
19
19
reliability and consistency in documentation. They are case-sensitive and
20
20
are not interchangeable.
21
21
22
- +----------------------+--------------------------+-------------------------+
23
- | Term | Description | Correct | Incorrect |
24
- +----------------------+--------------------------+-------------------------+
25
- | Figure | Workign space for | | |
26
- | | programming. | | |
27
- +----------------------+--------------------------+-------------------------+
28
- | Axes | Subplots within Figure. | | |
29
- | | Contains Figure elements | | |
30
- | | and is responsible for | | |
31
- | | plotting and configuring | | |
32
- | | additional details. | | |
33
- +----------------------+--------------------------+-------------------------+
34
- | Axis | Refers to visible object | | |
35
- | | corresponding to labeling| | |
36
- | | of plotted data. | | |
37
- +----------------------+--------------------------+-------------------------+
38
- | Artist | Broad Matplotlib object | | |
39
- | | that displays visuals. | | |
40
- +----------------------+--------------------------+-------------------------+
41
- | Object Oriented | Explicit approach of | | |
42
- | Programming (OOP) | programing in Matplotlib.| | |
43
- +----------------------+--------------------------+-------------------------+
22
+ +------------------+--------------------------+--------------+--------------+
23
+ | Term | Description | Correct | Incorrect |
24
+ +==================+==========================+==============+==============+
25
+ | Figure | Matplotlib working space |- One Figure |- One figure |
26
+ | | for programming. |- 11 Figures |- 11 figures |
27
+ +------------------+--------------------------+--------------+--------------+
28
+ | Axes | Subplots within Figure. | - One Axes | - One axes |
29
+ | | Contains Figure elements | - Four Axes | - Four Axeses|
30
+ | | and is responsible for | - 32 Axes | - 32 Axii |
31
+ | | plotting and configuring | | |
32
+ | | additional details. | | |
33
+ +------------------+--------------------------+--------------+--------------+
34
+ | Artist | Broad Matplotlib object | - One Artist | - One artist |
35
+ | | that displays visuals. | - Two Artists| - Two artists|
36
+ +------------------+--------------------------+--------------+--------------+
37
+ | Axis | Refers to visible object | - One Axis | - One axis |
38
+ | | corresponding to labeling| - Four Axis | - Four Axises|
39
+ | | of plotted data. | objects | - 32 Axes |
40
+ +------------------+--------------------------+--------------+--------------+
41
+ | Explicit, | Explicit approach of | - Explicit | - object |
42
+ | Object Oriented | programing in Matplotlib.| - explicit | oriented |
43
+ | Programming (OOP)| | - OOP | - OO-style |
44
+ +------------------+--------------------------+--------------+--------------+
45
+ | Implicit, | Implicit approach of | - Implicit | - MATLAB like|
46
+ | ``pyplot `` | programming in Matplotlib| - implicit | - Pyplot |
47
+ | | with ``pyplot `` module. | - ``pyplot `` | - pyplot |
48
+ | | | | interface |
49
+ +------------------+--------------------------+--------------+--------------+
44
50
45
51
46
52
Grammar
@@ -52,11 +58,11 @@ The audience is the "user" in the documentation. A "user" is a person
52
58
programming in Python with the Matplotlib library.
53
59
54
60
Use second-person sentences for instructions directed at user for specifying
55
- an action.
61
+ an action or a possessive reference .
56
62
57
63
+------------------------------------+------------------------------------+
58
64
| Correct | Incorrect |
59
- +------------------------------------+------------------------------------ +
65
+ +====================================+==================================== +
60
66
| Users install Matplotlib from the | You can install Matplotlib from the|
61
67
| source directory using the Python | source directory. You can find |
62
68
| ``pip `` installer program. | additional support if you are |
@@ -71,12 +77,12 @@ or auxiliary verbs when possible.
71
77
72
78
+------------------------------------+------------------------------------+
73
79
| Correct | Incorrect |
74
- +------------------------------------+------------------------------------ +
80
+ +====================================+==================================== +
75
81
| The fundamental ideas behind | Matplotlib will take data and |
76
82
| Matplotlib for visualization | transform it through functions and |
77
- | involve taking data and | methods. This should be the basic |
78
- | transforming it thorugh functions | fundamental idea behind Matplotlib |
79
- | and methods. | for visualizations. |
83
+ | involve taking data and | methods. They can generate many |
84
+ | transforming it through functions | kinds of visuals. These will be the |
85
+ | and methods. | fundamentals for using Matplotlib. |
80
86
+------------------------------------+------------------------------------+
81
87
82
88
Voice
@@ -86,7 +92,7 @@ related to warning prompts.
86
92
87
93
+------------------------------------+------------------------------------+
88
94
| Correct | Incorrect |
89
- +------------------------------------+------------------------------------ +
95
+ +====================================+==================================== +
90
96
| The function ``plot `` generates the| The graph is generated by the |
91
97
| graph. | ``plot `` function. |
92
98
+------------------------------------+------------------------------------+
@@ -97,13 +103,13 @@ related to warning prompts.
97
103
98
104
Sentence structure
99
105
^^^^^^^^^^^^^^^^^^
100
- Write wih short sentences using Subject-Verb-Object order regularly. Limit
106
+ Write with short sentences using Subject-Verb-Object order regularly. Limit
101
107
how frequently coordinating conjunctions appear in sentences. Avoid pronoun
102
108
referenes and subordinating conjunctive prhases.
103
109
104
110
+------------------------------------+------------------------------------+
105
111
| Correct | Incorrect |
106
- +------------------------------------+------------------------------------ +
112
+ +====================================+==================================== +
107
113
| The ``pyplot`` module in Matplotlib| The ``pyplot`` module in Matplotlib|
108
114
| is a collection of functions. These| is a collection of functions which |
109
115
| functions create, manage, and | create, manage, and manipulate the |
@@ -115,18 +121,23 @@ referenes and subordinating conjunctive prhases.
115
121
| corresponds to the respective | respective Figure. |
116
122
| Figure. | |
117
123
+------------------------------------+------------------------------------+
124
+ | The implicit approach is a | Users that wish to have convenient |
125
+ | convenient shortcut for | shortcuts for generating plots use |
126
+ | generating simple plots. | the implicit approach. |
127
+ +------------------------------------+------------------------------------+
128
+
118
129
119
130
Formatting
120
131
==========
121
132
122
133
Matplotlib uses reStructuredText Markup for documentation. Sphinx helps to
123
- transform these documents into proper formats for access and visibility.
134
+ transform these documents into appropriate formats for accessibility and
135
+ visibility.
124
136
125
137
reStructuredText standards
126
138
--------------------------
127
-
128
- https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
129
- https://docutils.sourceforge.io/docs/user/rst/quickref.html
139
+ - https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html
140
+ - https://docutils.sourceforge.io/docs/user/rst/quickref.html
130
141
131
142
132
143
Lists
@@ -136,19 +147,21 @@ Numbered Lists are exclusively for performing actions in specific order.
136
147
137
148
+------------------------------------+------------------------------------+
138
149
| Correct | Incorrect |
139
- +------------------------------------+------------------------------------ +
150
+ +====================================+==================================== +
140
151
| The example uses three graphs. | The example uses three graphs. |
141
- | - Bar | 1. Bar |
142
- | - Line | 2. Line |
143
- | - Pie | 3. Pie |
144
152
+------------------------------------+------------------------------------+
145
- | These three steps help to get | The following steps are important |
153
+ | - Bar | 1. Bar |
154
+ | - Line | 2. Line |
155
+ | - Pie | 3. Pie |
156
+ +------------------------------------+------------------------------------+
157
+ | These four steps help to get | The following steps are important |
146
158
| started using Matplotlib. | to get started using Matplotlib. |
147
- | 1. Import the Matplotlib library. | - Import the Matplotlib library. |
148
- | 2. Import the necessary modules. | - Import the necessary modules. |
149
- | 3. Set and assign data to work on. | - Set and assign data to work on. |
150
- | 4. Transform data with methods and | - Transform data with methods and |
151
- | functions. | functions. |
159
+ +------------------------------------+------------------------------------+
160
+ | 1. Import the Matplotlib library. | - Import the Matplotlib library. |
161
+ | 2. Import the necessary modules. | - Import the necessary modules. |
162
+ | 3. Set and assign data to work on.| - Set and assign data to work on. |
163
+ | 4. Transform data with methods and| - Transform data with methods and |
164
+ | functions. | functions. |
152
165
+------------------------------------+------------------------------------+
153
166
154
167
Additional Resources
@@ -158,8 +171,3 @@ Additional Resources
158
171
* `IBM Style Guide <https://www.ibm.com/developerworks/library/styleguidelines/ >`_
159
172
* `Google Developer Style Guide <https://developers.google.com/style >`_
160
173
161
- +------------------------------------+------------------------------------+
162
- | Correct | Incorrect |
163
- +------------------------------------+------------------------------------+
164
- | | |
165
- +------------------------------------+------------------------------------+
0 commit comments