You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
tacaswell
added a commit
to tacaswell/matplotlib
that referenced
this issue
Jul 16, 2015
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 didrcParams['axes.color_cycle']
, they would get back a cycler object instead of a list of colors.The text was updated successfully, but these errors were encountered: