From 2c5e2b61873a8cf92ed8473b98801ab099878dda Mon Sep 17 00:00:00 2001 From: Emily KL <4672118+emilykl@users.noreply.github.com> Date: Wed, 1 Oct 2025 17:39:51 -0400 Subject: [PATCH] fix matplotlib import --- plotly/matplotlylib/mplexporter/tests/test_utils.py | 3 ++- plotly/matplotlylib/tests/test_renderer.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plotly/matplotlylib/mplexporter/tests/test_utils.py b/plotly/matplotlylib/mplexporter/tests/test_utils.py index 1373dd4679..9c302d7491 100644 --- a/plotly/matplotlylib/mplexporter/tests/test_utils.py +++ b/plotly/matplotlylib/mplexporter/tests/test_utils.py @@ -1,6 +1,7 @@ +import matplotlib.pyplot as plt from numpy.testing import assert_allclose, assert_equal + from .. import utils -import matplotlib.pyplot as plt def test_path_data(): diff --git a/plotly/matplotlylib/tests/test_renderer.py b/plotly/matplotlylib/tests/test_renderer.py index 72116813ac..0d63e4815b 100644 --- a/plotly/matplotlylib/tests/test_renderer.py +++ b/plotly/matplotlylib/tests/test_renderer.py @@ -1,7 +1,6 @@ +import matplotlib.pyplot as plt import plotly.tools as tls -from . import plt - def test_native_legend_enabled_when_matplotlib_legend_present(): """Test that when matplotlib legend is present, Plotly uses native legend."""