Skip to content

Commit

Permalink
Matplotlib SplinePlot handles empty Spline
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Jun 12, 2017
1 parent ec3ba28 commit 16df9f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions holoviews/plotting/mpl/annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ class SplinePlot(AnnotationPlot):

def draw_annotation(self, axis, data, opts):
verts, codes = data
if not len(verts):
return []
patch = patches.PathPatch(matplotlib.path.Path(verts, codes),
facecolor='none', **opts)
axis.add_patch(patch)
Expand Down

0 comments on commit 16df9f8

Please sign in to comment.