Skip to content

Commit

Permalink
Fix deprecated matplotlib call in superzip
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheng5 committed Jun 12, 2024
1 parent d4e0f7c commit 47e5e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/superzip/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

import ipyleaflet as leaf
import matplotlib as mpl
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import plotly.figure_factory as ff
import plotly.graph_objs as go
import shiny
from ipyleaflet import basemaps
from matplotlib import cm


def create_map(**kwargs):
Expand Down Expand Up @@ -91,7 +91,7 @@ def density_plot(
return go.FigureWidget(data=fig.data, layout=fig.layout)


color_palette = cm.get_cmap("viridis", 10)
color_palette = plt.get_cmap("viridis", 10)

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

0 comments on commit 47e5e85

Please sign in to comment.