8000 Merge pull request #12227 from timhoffm/doc-parameter-types-pos · matplotlib/matplotlib@da2aece · GitHub
[go: up one dir, main page]

Skip to content

Commit da2aece

Browse files
authored
Merge pull request #12227 from timhoffm/doc-parameter-types-pos
Use (float, float) as paramter type for 2D positions
2 parents d6519f0 + ad8d10f commit da2aece

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)
0