Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RcParams class does not have proper "get" ability of deprecated keywords #4715

Copy link
Copy link
Closed
@WeatherGod

Description

@WeatherGod
Issue body actions

The RcParams class has a mechanism for deprecating keywords, and aliasing to an alternative keyword with a way to convert its data into the new data. This is useful for setting values. However, it uses the same alternates mechanism for getting the keyword's data, but no way to invert the conversion.

For example, I plan to deprecate 'axes.color_cycle' for 'axes.prop_cycle'. The color_cycle is a list of strings, while a prop_cycle is a cycler object. The deprecation mechanism makes it easy for me to add a lambda of the form lambda x: cycler('color', x), so that setting a list to 'axes.color_cycle' still works. But if anyone did rcParams['axes.color_cycle'], they would get back a cycler object instead of a list of colors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.