Use this notebook to obtain "expected" values for
test_geom_imshow_nan_values.py
test suite.
import numpy as np
from lets_plot import *
LetsPlot.setup_html()
LetsPlot.set_theme(flavor_solarized_light())
arr = np.array([
[50., 150., 200.],
[200., 100., 50.]
])
ggplot() + geom_imshow(arr)
# With NaN values
arr_nan = np.array([
[50., np.nan, 200.],
[np.nan, 100., 50.]
])
ggplot() + geom_imshow(arr_nan)
ggplot() + geom_imshow(arr_nan, cmap="magma")
_.as_dict()