Skip to content

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

@apalkanau

Description

@apalkanau

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions