Skip to content

Commit bc841f0

Browse files
authored
Avoid matplotlib deprecation warning about vmin/vmax (#4736)
1 parent 3f7e3f0 commit bc841f0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

holoviews/plotting/mpl/element.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,9 @@ def init_artists(self, ax, plot_args, plot_kwargs):
529529
"""
530530
plot_method = self._plot_methods.get('batched' if self.batched else 'single')
531531
plot_fn = getattr(ax, plot_method)
532+
if 'norm' in plot_kwargs: # vmin/vmax should now be exclusively in norm
533+
plot_kwargs.pop('vmin', None)
534+
plot_kwargs.pop('vmax', None)
532535
artist = plot_fn(*plot_args, **plot_kwargs)
533536
return {'artist': artist[0] if isinstance(artist, list) and
534537
len(artist) == 1 else artist}

0 commit comments

Comments
 (0)