Skip to content

Commit

Permalink
Fixing issue with aspect in bokeh (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsignell authored Apr 3, 2019
1 parent 2258f5e commit 899ab28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion colorcet/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 899ab28

Please sign in to comment.