Skip to content

Commit bde67e9

Browse files
authored
Merge pull request #15356 from anntzer/broken-imports
FI broken imports.
2 parents e3e864c + 4677fd9 commit bde67e9

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

lib/matplotlib/backend_bases.py

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545

4646
import numpy as np
4747

48+
import matplotlib as mpl
4849
from matplotlib import (
4950
backend_tools as tools, cbook, colors, textpath, tight_bbox, transforms,
5051
widgets, get_backend, is_interactive, rcParams)

lib/matplotlib/patches.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1667,7 +1667,7 @@ def segment_circle_intersect(x0, y0, x1, y1):
16671667
# circle in the same way that it is relative to the desired ellipse.
16681668
box_path = Path.unit_rectangle()
16691669
box_path_transform = (transforms.BboxTransformTo(self.axes.bbox)
1670-
- self.get_transform())
1670+
+ self.get_transform().inverted())
16711671
box_path = box_path.transformed(box_path_transform)
16721672

16731673
thetas = set()

lib/matplotlib/tests/test_compare_images.py

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os
21
from pathlib import Path
32
import shutil
43

lib/matplotlib/tests/test_image.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@
1313
from numpy.testing import assert_array_equal
1414

1515
from matplotlib import (
16-
colors, image as mimage, patches, pyplot as plt, style,
17-
rc_context, rcParams)
16+
colors, image as mimage, patches, pyplot as plt, style, rcParams)
1817
from matplotlib.cbook import MatplotlibDeprecationWarning
1918
from matplotlib.image import (AxesImage, BboxImage, FigureImage,
2019
NonUniformImage, PcolorImage)

0 commit comments

Comments
 (0)