Skip to content

Commit

Permalink
Support passing marker 'sizes' to Cycle()
Browse files Browse the repository at this point in the history
  • Loading branch information
lukelbd committed Mar 26, 2022
1 parent e57dd7b commit f38becf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions proplot/constructor.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,8 @@ def Cycle(*args, N=None, samples=None, name=None, **kwargs):
# Parse keyword arguments that rotate through other properties
# besides color cycles.
props = _pop_props(kwargs, 'line')
if 'sizes' in kwargs: # special case, gets translated back by scatter()
props.setdefault('markersize', kwargs.pop('sizes'))
samples = _not_none(samples=samples, N=N) # trigger Colormap default
for key, value in tuple(props.items()): # permit in-place modification
if value is None:
Expand Down

0 comments on commit f38becf

Please sign in to comment.