Skip to content

Commit 47e5e85

Browse files
committed
Fix deprecated matplotlib call in superzip
1 parent d4e0f7c commit 47e5e85

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/superzip/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22

33
import ipyleaflet as leaf
44
import matplotlib as mpl
5+
import matplotlib.pyplot as plt
56
import numpy as np
67
import pandas as pd
78
import plotly.figure_factory as ff
89
import plotly.graph_objs as go
910
import shiny
1011
from ipyleaflet import basemaps
11-
from matplotlib import cm
1212

1313

1414
def create_map(**kwargs):
@@ -91,7 +91,7 @@ def density_plot(
9191
return go.FigureWidget(data=fig.data, layout=fig.layout)
9292

9393

94-
color_palette = cm.get_cmap("viridis", 10)
94+
color_palette = plt.get_cmap("viridis", 10)
9595

9696
# TODO: how to handle nas (pd.isna)?
9797
def col_numeric(domain: Tuple[float, float], na_color: str = "#808080"):

0 commit comments

Comments
 (0)