Skip to content

Commit

Permalink
DOC: Clarify interface terminology
Browse files Browse the repository at this point in the history
as proposed in https://github
.com/matplotlib/issues/21817#issuecomment-983705359
and matplotlib#26388

and already used in 26402.

Closes matplotlib#21817.
  • Loading branch information
timhoffm committed Apr 7, 2024
1 parent 69f9ebf commit da1551f
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions doc/devel/style_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,19 @@ reliability and consistency in documentation. They are not interchangeable.
| | | rotational | |
| | | motion." | |
+------------------+--------------------------+--------------+--------------+
| Explicit, | Explicit approach of | - Explicit | - object |
| Object Oriented | programming in | - explicit | oriented |
| Programming (OOP)| Matplotlib. | - OOP | - OO-style |
| Axes interface | Usage pattern in which | - Axes | - explicit |
| | one calls methods on | interface | interface |
| | Axes and Figure (and | - call | - object |
| | sometimes other Artist) | methods on | oriented |
| | objects to configure the | the Axes / | - OO-style |
| | plot. | Figure | - OOP |
| | | object | |
+------------------+--------------------------+--------------+--------------+
| Implicit, | Implicit approach of | - Implicit | - MATLAB like|
| ``pyplot`` | programming in Matplotlib| - implicit | - Pyplot |
| | with ``pyplot`` module. | - ``pyplot`` | - pyplot |
| | | | interface |
| pyplot interface | Usage pattern in which | - ``pyplot`` | - implicit |
| | one only calls `.pyplot` | interface | interface |
| | functions to configure | - call | - MATLAB like|
| | the plot. | ``pyplot`` | - Pyplot |
| | | functions | |
+------------------+--------------------------+--------------+--------------+

.. |Figure| replace:: :class:`~matplotlib.figure.Figure`
Expand Down

0 comments on commit da1551f

Please sign in to comment.