10000 doc: add description of **kwargs usage to collections (#27872) · matplotlib/matplotlib@0da2da0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0da2da0

Browse files
ianhitimhoffm
andauthored
doc: add description of **kwargs usage to collections (#27872)
* doc: add description of **kwargs usage to collections * Update lib/matplotlib/collections.py Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> --------- Co-authored-by: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com>
1 parent 9cad0d5 commit 0da2da0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/collections.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ def __init__(self, *,
151151
zorder : float, default: 1
152152
The drawing order, shared by all Patches in the Collection. See
153153
:doc:`/gallery/misc/zorder_demo` for all defaults and examples.
154+
**kwargs
155+
Remaining keyword arguments will be used to set properties as
156+
``Collection.set_{key}(val)`` for each key-value pair in *kwargs*.
154157
"""
155158
artist.Artist.__init__(self)
156159
cm.ScalarMappable.__init__(self, norm, cmap)

0 commit comments

Comments
 (0)
0