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

Skip to content

Commit cb8b291

Browse files
tacaswellmeeseeksmachine
authored andcommitted
Backport PR #23168: Corrected docstring for artist.Artist.set_agg_filter
1 parent f971aa8 commit cb8b291

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

lib/matplotlib/artist.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -929,11 +929,13 @@ def set_agg_filter(self, filter_func):
929929
Parameters
930930
----------
931931
filter_func : callable
932-
A filter function, which takes a (m, n, 3) float array and a dpi
933-
value, and returns a (m, n, 3) array.
932+
A filter function, which takes a (m, n, depth) float array
933+
and a dpi value, and returns a (m, n, depth) array and two
934+
offsets from the bottom left corner of the image
934935
935936
.. ACCEPTS: a filter function, which takes a (m, n, 3) float array
936-
and a dpi value, and returns a (m, n, 3) array
937+
and a dpi value, and returns a (m, n, 3) array and two offsets
938+
from the bottom left corner of the image
937939
"""
938940
self._agg_filter = filter_func
939941
self.stale = True

0 commit comments

Comments
 (0)