plotly.py icon indicating copy to clipboard operation
plotly.py copied to clipboard

AttributeError: 'NoneType' object has no attribute 'split'

Open apalkanau opened this issue 3 years ago • 0 comments

Similar to #3843

Reproducible examples:

import matplotlib.pyplot as plt
from plotly import tools

fig, ax = plt.subplots()
ax.plot([0, 1], [0, 1], drawstyle="steps-post", label="foo")
ax.legend()

tools.mpl_to_plotly(fig)
from sklearn.metrics import PrecisionRecallDisplay
from plotly import tools

y_test = [1]
predicted_probabilities = [0.9]

display = PrecisionRecallDisplay.from_predictions(y_test, predicted_probabilities)

tools.mpl_to_plotly(display.figure_)

I'm using matplotlib 3.x

apalkanau avatar Aug 23 '22 09:08 apalkanau