Skip to content

Commit

Permalink
Reenable SaveTool for plots with TileRenderer (#4922)
Browse files Browse the repository at this point in the history
* Reenable SaveTool for plots with TileRenderer

* Fix flake
  • Loading branch information
philippjfr authored May 10, 2021
1 parent 3ad8387 commit 5e41356
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions holoviews/plotting/bokeh/tiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from bokeh.models import WMTSTileSource, BBoxTileSource, QUADKEYTileSource, SaveTool
from bokeh.models import WMTSTileSource, BBoxTileSource, QUADKEYTileSource

from ...core import util
from ...core.options import SkipRendering
Expand Down Expand Up @@ -66,7 +66,4 @@ def _init_glyph(self, plot, mapping, properties):
level = properties.pop('level', 'glyph')
renderer = plot.add_tile(tile_source, level=level)
renderer.alpha = properties.get('alpha', 1)

# Remove save tool
plot.tools = [t for t in plot.tools if not isinstance(t, SaveTool)]
return renderer, tile_source

0 comments on commit 5e41356

Please sign in to comment.