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
Is markevery an artist property? If so, then it should be made into a valid
argument to the property cycler. If not, then adding support for it is very
tricky.
On Sun, May 7, 2017 at 3:29 PM, Thomas A Caswell ***@***.***> wrote:
The issue is that validate the keys in cycler with a white list (see
https://github.com/matplotlib/matplotlib/blob/master/lib/
matplotlib/rcsetup.py#L716 ). The simplest fix is to just extend that to
also include markevery, but I am slightly concerned about un-intended
consequences.
Exact work:
- add markevery + validator to rcsetup
- add test of using markevery in the property cycle
- add whats-new entry
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8576 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AARy-MQBrtaaeqKvT8i8pEQJ31jCUpecks5r3huhgaJpZM4NRh2G>
.
@tacaswell Hey Thomas, sorry for being so slow on this, but this new validate_markevery method I'm about to PR should enable the full API of lines.set_markevery for the 'axes.prop_cycle' parameter of rcParams, as opposed to restricting assignments to any of the pre-existing validators. If you want to use the example, just lemme know what I need to do to get it into the documentation. Was a pleasure coding with you last weekend!
Activity
BowenFu commentedon May 7, 2017
Same problem.
tacaswell commentedon May 7, 2017
The issue is that validate the keys in cycler with a white list (see https://github.com/matplotlib/matplotlib/blob/master/lib/matplotlib/rcsetup.py#L716 ). The simplest fix is to just extend that to also include markevery, but I am slightly concerned about un-intended consequences.
Exact work:
markevery+ validator to rcsetup[-]Key axes.prop_cycle: Unknown artist properties: {'markevery'}[/-][+]support 'markevery' in prop_cycle[/+]WeatherGod commentedon May 8, 2017
BowenFu commentedon May 8, 2017
@WeatherGod I believe it is also a good idea to directly allow
matplotlib.rcParamsDefault['lines.markevery'] = 8Fixed Issue matplotlib#8576 'markevery' support in prop_cycle
RavingMadScientist commentedon Jul 20, 2017
@tacaswell Hey Thomas, sorry for being so slow on this, but this new validate_markevery method I'm about to PR should enable the full API of lines.set_markevery for the 'axes.prop_cycle' parameter of rcParams, as opposed to restricting assignments to any of the pre-existing validators. If you want to use the example, just lemme know what I need to do to get it into the documentation. Was a pleasure coding with you last weekend!
Cheers :)
tacaswell commentedon Sep 24, 2017
@RavingMadScientist What is the state of this?
timhoffm commentedon Mar 20, 2018
Implemented by #10713