@@ -923,11 +923,14 @@ def set_dashes(self, dash_offset, dash_list):
923
923
924
924
def set_foreground (self , fg , isRGBA = False ):
925
925
"""
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.
929
927
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.
931
934
"""
932
935
if self ._forced_alpha and isRGBA :
933
936
self ._rgb = fg [:3 ] + (self ._alpha ,)
@@ -1899,10 +1902,10 @@ def print_figure(self, filename, dpi=None, facecolor=None, edgecolor=None,
1899
1902
dpi : scalar, optional
1900
1903
the dots per inch to save the figure in; if None, use savefig.dpi
1901
1904
1902
- facecolor : color spec or None, optional
1905
+ facecolor : color or None, optional
1903
1906
the facecolor of the figure; if None, defaults to savefig.facecolor
1904
1907
1905
- edgecolor : color spec or None, optional
1908
+ edgecolor : color or None, optional
1906
1909
the edgecolor of the figure; if None, defaults to savefig.edgecolor
1907
1910
1908
1911
format : str, optional
0 commit comments