-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Description
While trying to convert a Matplotlib Heatmap figure to a plotly object I am getting the following message, as well as a blank graph.
UserWarning:
Aw. Snap! You're gonna have to hold off on the selfies for now. Plotly can't import images from matplotlib yet!
UserWarning:
Dang! That path collection is out of this world. I totally don't know what to do with it yet! Plotly can only import path collections linked to 'data' coordinates
This is also happens when trying with seaborn heatmaps as well.
code to reproduce
import plotly.tools as tools
import numpy as np
import matplotlib.pyplot as plt
data = np.random.rand(10, 10) # 10x10 random matrix
fig1: plt.Figure = plt.figure()
ax1 = plt.imshow(data, cmap='viridis', aspect='equal')
plt.colorbar(ax1)
plt.title('Matplotlib Heatmap')
tools.mpl_to_plotly(fig1)
Metadata
Metadata
Assignees
Labels
No labels