10000 Update docs on Axes.set_prop_cycle by timhoffm · Pull Request #10662 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Update docs on Axes.set_prop_cycle #10662

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 21, 2018

Conversation

timhoffm
Copy link
Member
@timhoffm timhoffm commented Mar 3, 2018

PR Summary

Documentation update.

Questions

  1. :func:`cycler` does not link. I'm unclear where it should go. There is matplotlib.rcsetup.cycler and the external cycler.cycler. Which one is recommended?
  2. Should we deprecate or at least discourage the signature set_prop_cycle(label, values) in favor of the equivalent set_prop_cycle(label=values). There's no need for additionally supporting the first version and it's not quite pythonic after all.

@tacaswell tacaswell added this to the v2.2.1 milestone Mar 16, 2018
@phobson
Copy link
Member
phobson commented Mar 16, 2018

Restarted the one failed travis build. The failure seems transient.

@tacaswell tacaswell modified the milestones: v2.2.1, v2.2.2 Mar 16, 2018
@WeatherGod
Copy link
Member
WeatherGod commented Mar 17, 2018 via email

@timhoffm timhoffm force-pushed the axes-doc-prop-cycle branch from c5b290d to 962a2d7 Compare March 17, 2018 19:45
Copy link
Contributor
@anntzer anntzer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think set_prop_cycle(label, values) is quite ugly (very matlabby) but won't (... now :)) fight the fight of getting it deprecated...

@anntzer anntzer merged commit e92117c into matplotlib:master Mar 21, 2018
phobson added a commit that referenced this pull request Mar 21, 2018
@timhoffm timhoffm deleted the axes-doc-prop-cycle branch March 21, 2018 21:12
@timhoffm
Copy link
Member Author

@anntzer I share your view on set_prop_cycle. I would be willing to argue for a deprecation of the two-arg signature if there's a chance of getting this through (There should be one-- and preferably only one --obvious way to do it.).

At best, it could be deprecated at cycler.Cycler, but a smaller step in rcsetup.cycler or maybe only in set_prop_cycle would be an improvement. Do you think, there is a chance of getting any of this through?

@anntzer
Copy link
Contributor
anntzer commented Mar 21, 2018

You can always try to open a PR for that :-)

@WeatherGod
Copy link
Member
WeatherGod commented Mar 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
0