Skip to content

Commit 1478a1b

Browse files
committed
Merge pull request matplotlib#1190 from dmcdougall/line_doc
Update documentation regarding lines.color
2 parents b8a0139 + e07c3ea commit 1478a1b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/matplotlib/axes.py

+5
Original file line numberDiff line numberDiff line change
@@ -3882,6 +3882,11 @@ def plot(self, *args, **kwargs):
38823882
38833883
Return value is a list of lines that were added.
38843884
3885+
By default, each line is assigned a different color specified by a
3886+
'color cycle'. To change this behavior, you can edit the
3887+
axes.color_cycle rcParam. Alternatively, you can use
3888+
:meth:`~matplotlib.axes.Axes.set_default_color_cycle`.
3889+
38853890
The following format string characters are accepted to control
38863891
the line style or marker:
38873892

matplotlibrc.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ backend : %(backend)s
6060
# information on line properties.
6161
#lines.linewidth : 1.0 # line width in points
6262
#lines.linestyle : - # solid line
63-
#lines.color : blue
63+
#lines.color : blue # has no affect on plot(); see axes.color_cycle
6464
#lines.marker : None # the default marker
6565
#lines.markeredgewidth : 0.5 # the line width around the marker symbol
6666
#lines.markersize : 6 # markersize, in points

0 commit comments

Comments
 (0)