Skip to content

Commit db9401b

Browse files
committed
moved import to top
1 parent b0ab467 commit db9401b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tests/plotting/test_misc.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
""" Test cases for misc plot functions """
22

3+
from matplotlib.text import Text
34
import numpy as np
45
import pytest
56

@@ -446,7 +447,6 @@ def test_dictionary_color(self):
446447
def test_bar_plot(self):
447448
# GH38947
448449
# Test bar plot with string and int index
449-
from matplotlib.text import Text
450450

451451
expected = [Text(0, 0, "0"), Text(1, 0, "Total")]
452452

@@ -465,7 +465,6 @@ def test_bar_plot(self):
465465
def test_barh_plot_labels_mixed_integer_string(self):
466466
# GH39126
467467
# Test barh plot with string and integer at the same column
468-
from matplotlib.text import Text
469468

470469
df = DataFrame([{"word": 1, "value": 0}, {"word": "knowledg", "value": 2}])
471470
plot_barh = df.plot.barh(x="word", legend=None)
@@ -602,7 +601,6 @@ def test_plot_bar_axis_units_timestamp_conversion(self):
602601
def test_bar_plt_xaxis_intervalrange(self):
603602
# GH 38969
604603
# Ensure IntervalIndex x-axis produces a bar plot as expected
605-
from matplotlib.text import Text
606604

607605
expected = [Text(0, 0, "([0, 1],)"), Text(1, 0, "([1, 2],)")]
608606
s = Series(

0 commit comments

Comments
 (0)