Skip to content

Commit e431f79

Browse files
committed
small improvements in "Matplotlib has two different interfaces"
1 parent b2166ac commit e431f79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/data-visualization.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ When plotting with Matplotlib, it is useful to know and understand that
195195
there are **two approaches** even though the reasons of this dual approach is
196196
outside the scope of this lesson.
197197

198-
- The more modern option is an **object-oriented interface** (the
198+
- The more modern option is an **object-oriented interface** or **explicit interface** (the
199199
{class}`fig <matplotlib.figure.Figure>` and {class}`ax <matplotlib.axes.Axes>` objects
200200
can be configured separately and passed around to functions):
201201
```{code-block} python
@@ -219,7 +219,7 @@ outside the scope of this lesson.
219219
```
220220

221221
- The more traditional option mimics MATLAB plotting and uses the
222-
**pyplot interface** ({mod}`plt <matplotlib.pyplot>` carries
222+
**pyplot interface** or **implicit interface** ({mod}`plt <matplotlib.pyplot>` carries
223223
the global settings):
224224
```{code-block} python
225225
---
@@ -250,7 +250,7 @@ into these functions and there is less risk that adjusting figures changes
250250
settings also for unrelated figures created in other functions.
251251
252252
When using the pyplot interface, settings are modified for the entire
253-
{mod}`matplotlib.pyplot` package. The latter is acceptable for linear scripts but may yield
253+
{mod}`matplotlib.pyplot` package. The latter is acceptable for simple scripts but may yield
254254
surprising results when introducing functions to enhance/abstract Matplotlib
255255
calls.
256256
```

0 commit comments

Comments
 (0)