Skip to content

Commit f38becf

Browse files
committed
Support passing marker 'sizes' to Cycle()
1 parent e57dd7b commit f38becf

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proplot/constructor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,8 @@ def Cycle(*args, N=None, samples=None, name=None, **kwargs):
788788
# Parse keyword arguments that rotate through other properties
789789
# besides color cycles.
790790
props = _pop_props(kwargs, 'line')
791+
if 'sizes' in kwargs: # special case, gets translated back by scatter()
792+
props.setdefault('markersize', kwargs.pop('sizes'))
791793
samples = _not_none(samples=samples, N=N) # trigger Colormap default
792794
for key, value in tuple(props.items()): # permit in-place modification
793795
if value is None:

0 commit comments

Comments
 (0)