| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| Arbitrary code in ``axes.prop_cycle`` rcParam strings | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| The ``axes.prop_cycle`` rcParam accepts Python expressions that are evaluated | ||
| in a limited context. The evaluation context has been further limited and some | ||
| expressions that previously worked (list comprehensions, for example) no longer | ||
| will. This change is made without a deprecation period to improve security. | ||
| The previously documented cycler operations at | ||
| https://matplotlib.org/cycler/ are still supported. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| ``axes.prop_cycle`` rcParam security improvements | ||
| ------------------------------------------------- | ||
|
|
||
| The ``axes.prop_cycle`` rcParam is now parsed in a safer and more restricted | ||
| manner. Only literals, ``cycler()`` and ``concat()`` calls, the operators | ||
| ``+`` and ``*``, and slicing are allowed. All previously valid cycler strings | ||
| documented at https://matplotlib.org/cycler/ are still supported, for example: | ||
|
|
||
| .. code-block:: none | ||
|
|
||
| axes.prop_cycle : cycler('color', ['r', 'g', 'b']) + cycler('linewidth', [1, 2, 3]) | ||
| axes.prop_cycle : 2 * cycler('color', 'rgb') | ||
| axes.prop_cycle : concat(cycler('color', 'rgb'), cycler('color', 'cmk')) | ||
| axes.prop_cycle : cycler('color', 'rgbcmk')[:3] |
| Back | FazBrowse Home | New Git URL |
Uh oh!
There was an error while loading. Please reload this page.