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

Skip to content

Commit 309981d

Browse files
authored
Merge pull request #27164 from Borda/docs/set_facecolor
docs: adding explanation for color in `set_facecolor`
2 parents 17e562e + 3bd5672 commit 309981d

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1499,7 +1499,7 @@ def set_facecolor(self, color):
14991499
15001500
Parameters
15011501
----------
1502-
color : color
1502+
color : color; see :ref:`colors_def`
15031503
"""
15041504
self._facecolor = color
15051505
self.stale = True

lib/matplotlib/axes/_secondary_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def set_color(self, color):
233233
234234
Parameters
235235
----------
236-
color : color
236+
color : color; see :ref:`colors_def`
237237
"""
238238
axis = self._axis_map[self._orientation]
239239
axis.set_tick_params(colors=color)

lib/matplotlib/figure.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ def set_edgecolor(self, color):
410410
411411
Parameters
412412
----------
413-
color : color
413+
color : color; see :ref:`colors_def`
414414
"""
415415
self.patch.set_edgecolor(color)
416416

@@ -420,7 +420,7 @@ def set_facecolor(self, color):
420420
421421
Parameters
422422
----------
423-
color : color
423+
color : color; see :ref:`colors_def`
424424
"""
425425
self.patch.set_facecolor(color)
426426

lib/matplotlib/lines.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1056,7 +1056,7 @@ def set_color(self, color):
10561056
10571057
Parameters
10581058
----------
1059-
color : color
1059+
color : color; see :ref:`colors_def`
10601060
"""
10611061
mcolors._check_color_like(color=color)
10621062
self._color = color

lib/matplotlib/patches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ def set_edgecolor(self, color):
332332
333333
Parameters
334334
----------
335-
color : color or None
335+
color : color or None; see :ref:`colors_def`
336336
"""
337337
self._original_edgecolor = color
338338
self._set_edgecolor(color)
@@ -350,7 +350,7 @@ def set_facecolor(self, color):
350350
351351
Parameters
352352
----------
353-
color : color or None
353+
color : color or None; see :ref:`colors_def`
354354
"""
355355
self._original_facecolor = color
356356
self._set_facecolor(color)

lib/matplotlib/text.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -965,7 +965,7 @@ def set_backgroundcolor(self, color):
965965
966966
Parameters
967967
----------
968-
color : color
968+
color : color; see :ref:`colors_def`
969969
970970
See Also
971971
--------
@@ -985,7 +985,7 @@ def set_color(self, color):
985985
986986
Parameters
987987
----------
988-
color : color
988+
color : color; see :ref:`colors_def`
989989
"""
990990
# "auto" is only supported by axisartist, but we can just let it error
991991
# out at draw time for simplicity.

0 commit comments

Comments
 (0)