@@ -923,11 +923,14 @@ def set_dashes(self, dash_offset, dash_list):
923923
924924 def set_foreground (self , fg , isRGBA = False ):
925925 """
926- Set the foreground color. fg can be a MATLAB format string, a
927- html hex color string, an rgb or rgba unit tuple, or a float between 0
928- and 1. In the latter case, grayscale is used.
926+ Set the foreground color.
929927
930- If you know fg is rgba, set ``isRGBA=True`` for efficiency.
928+ Parameters
929+ ----------
930+ fg : color
931+ isRGBA : bool
932+ If *fg* is known to be an ``(r, g, b, a)`` tuple, *isRGBA* can be
933+ set to True to improve performance.
931934 """
932935 if self ._forced_alpha and isRGBA :
933936 self ._rgb = fg [:3 ] + (self ._alpha ,)
@@ -1899,10 +1902,10 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
18991902 dpi : scalar, optional
19001903 the dots per inch to save the figure in; if None, use savefig.dpi
19011904
1902- facecolor : color spec or None, optional
1905+ facecolor : color or None, optional
19031906 the facecolor of the figure; if None, defaults to savefig.facecolor
19041907
1905- edgecolor : color spec or None, optional
1908+ edgecolor : color or None, optional
19061909 the edgecolor of the figure; if None, defaults to savefig.edgecolor
19071910
19081911 format : str, optional
0 commit comments