Skip to content

Commit

Permalink
moving docs around
Browse files Browse the repository at this point in the history
  • Loading branch information
story645 committed Nov 6, 2019
1 parent df97d01 commit 34d35f9
Show file tree
Hide file tree
Showing 3 changed files with 3,429 additions and 68 deletions.
3 changes: 2 additions & 1 deletion contrib_colormaps/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ def swatch(name, bounds=None, array=array, **kwargs):
cmap=palette[name]))
if 'matplotlib' in backends:
aspect = kwargs.pop('aspect', 15)
fig_size = kwargs.pop('fig_size', 350)
fig_size = kwargs.pop('fig_size',350)
plot.opts(opts.Image(backend='matplotlib', aspect=aspect, fig_size=fig_size,
cmap=cm[name]))

return plot.opts(opts.Image(xaxis=None, yaxis=None), opts.Image(**kwargs))


Expand Down
Loading

0 comments on commit 34d35f9

Please sign in to comment.