diff --git a/colorcet/plotting.py b/colorcet/plotting.py index 0a0794e..cc7f250 100644 --- a/colorcet/plotting.py +++ b/colorcet/plotting.py @@ -51,7 +51,7 @@ def swatches(*args, group=None, not_group=None, only_aliased=False, cols=None, * if 'height' not in kwargs: kwargs['height'] = 100 if 'width' not in kwargs: - kwargs['width'] = (9 * kwargs['height']) // 3 + kwargs['width'] = (9 * kwargs['height']) // cols plot = hv.Layout([ swatch(arg, **kwargs) if isinstance(arg, str) else