Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable padding on all non-raster elements #4182

Merged
merged 20 commits into from Jan 15, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions holoviews/plotting/bokeh/chart.py
Expand Up @@ -188,6 +188,8 @@ class VectorFieldPlot(ColorbarPlot):
distance between vectors, this can be disabled with the
rescale_lengths option.""")

padding = param.ClassSelector(default=0.05, class_=(int, float, tuple))
philippjfr marked this conversation as resolved.
Show resolved Hide resolved

pivot = param.ObjectSelector(default='mid', objects=['mid', 'tip', 'tail'],
doc="""
The point around which the arrows should pivot valid options
Expand Down
2 changes: 2 additions & 0 deletions holoviews/plotting/mpl/chart.py
Expand Up @@ -714,6 +714,8 @@ class VectorFieldPlot(ColorbarPlot):
distance between vectors, this can be disabled with the
rescale_lengths option.""")

padding = param.ClassSelector(default=0.05, class_=(int, float, tuple))

rescale_lengths = param.Boolean(default=True, doc="""
Whether the lengths will be rescaled to take into account the
smallest non-zero distance between two vectors.""")
Expand Down