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

Skip to content

Commit 3c82137

Browse files
meeseeksmachinetimhoffm
authored andcommitted
Backport PR #12227: Use (float, float) as paramter type for 2D positions (#12233)
1 parent ea13253 commit 3c82137

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/devel/documenting_mpl.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,6 +426,8 @@ rules expand on them where the numpydoc conventions are not specific.
426426

427427
Use ``float`` for a type that can be any number.
428428

429+
Use ``(float, float)`` to describe a 2D position.
430+
429431
Use ``array-like`` for homogeneous numeric sequences, which could
430432
typically be a numpy.array. Dimensionality may be specified using ``2D``,
431433
``3D``, ``n-dimensional``. If you need to have variables denoting the

0 commit comments

Comments
 (0)