Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork7.9k
[WIP] Property Cycling#4686
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
d08c627
e3c0951
160401b
6b2223d
0c1e609
61d10f9
e356972
68f0afb
c806726
9965f5f
5fa07f2
98fb775
f443629
648d3ea
2e7b6a5
a1b822f
6df7829
871d616
e7786d0
153ef67
8ce4797
f3e8394
6b5a6a5
c72a74f
53f1ff2
9a31950
55bf053
44f74e3
5a3ce17
9848661
63d6321
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
`color_cycle` deprecated | ||
```````````````````````` | ||
In light of the new property cycling feature, | ||
the Axes method *set_color_cycle* is now deprecated. | ||
Calling this method will replace the current property cycle with | ||
one that cycles just the given colors. | ||
Similarly, the rc parameter *axes.color_cycle* is also deprecated in | ||
lieu of the new *axes.prop_cycle* parameter. Having both parameters in | ||
the same rc file is not recommended as the result cannot be | ||
predicted. For compatibility, setting *axes.color_cycle* will | ||
replace the cycler in *axes.prop_cycle* with a color cycle. | ||
Accessing *axes.color_cycle* will return just the color portion | ||
of the property cycle, if it exists. | ||
Timeline for removal has not been set. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1265,9 +1265,9 @@ def plot(self, *args, **kwargs): | ||
Return value is a list of lines that were added. | ||
By default, each line is assigned a differentstyle specified by a | ||
'style cycle'. To change this behavior, you can edit the | ||
axes.prop_cycle rcParam. | ||
The following format string characters are accepted to control | ||
the line style or marker: | ||
@@ -2935,8 +2935,8 @@ def xywhere(xs, ys, mask): | ||
l0, = self.plot(x, y, fmt, **kwargs) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. Never mind, I understand this logic now. | ||
if ecolor is None: | ||
if l0 is None and 'color' in self._get_lines._prop_keys: | ||
ecolor = six.next(self._get_lines.prop_cycler)['color'] | ||
else: | ||
ecolor = l0.get_color() | ||
@@ -5829,8 +5829,8 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None, | ||
nx = len(x) # number of datasets | ||
if color is None and 'color' in self._get_lines._prop_keys: | ||
color = [six.next(self._get_lines.prop_cycler)['color'] | ||
for i in xrange(nx)] | ||
else: | ||
color = mcolors.colorConverter.to_rgba_array(color) | ||
Uh oh!
There was an error while loading.Please reload this page.