Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 77d8c5f

Browse files
committed
Remove unused code
1 parent f4a8a4e commit 77d8c5f

36 files changed

Lines changed: 11 additions & 68 deletions

examples/lines_bars_and_markers/line_styles_reference.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
Reference for line-styles included with Matplotlib.
77
"""
88

9-
import numpy as np
109
import matplotlib.pyplot as plt
1110

1211

lib/matplotlib/_constrained_layout.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,6 @@
4949
import logging
5050
import warnings
5151

52-
from matplotlib.legend import Legend
53-
import matplotlib.transforms as transforms
5452
import matplotlib._layoutbox as layoutbox
5553

5654
_log = logging.getLogger(__name__)

lib/matplotlib/_layoutbox.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import kiwisolver as kiwi
2020
import logging
2121
import numpy as np
22-
import warnings
2322

2423
import matplotlib
2524

lib/matplotlib/_pylab_helpers.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import atexit
66
import gc
7-
import sys
87

98

109
class Gcf(object):

lib/matplotlib/axes/_axes.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@
3333
import matplotlib.ticker as mticker
3434
import matplotlib.transforms as mtransforms
3535
import matplotlib.tri as mtri
36-
from matplotlib.cbook import (
37-
MatplotlibDeprecationWarning, warn_deprecated, STEP_LOOKUP_MAP, iterable,
38-
safe_first_element)
36+
from matplotlib.cbook import iterable
3937
from matplotlib.container import BarContainer, ErrorbarContainer, StemContainer
4038
from matplotlib.axes._base import _AxesBase, _process_plot_format
4139

@@ -566,9 +564,6 @@ def indicate_inset(self, bounds, inset_ax=None, *, transform=None,
566564

567565
if inset_ax is not None:
568566
# want to connect the indicator to the rect....
569-
570-
pos = inset_ax.get_position() # this is in fig-fraction.
571-
coordsA = 'axes fraction'
572567
connects = []
573568
xr = [bounds[0], bounds[0]+bounds[2]]
574569
yr = [bounds[1], bounds[1]+bounds[3]]
@@ -3185,7 +3180,7 @@ def extract_err(err, data):
31853180
# being accepted, when the user meant the 2xN transpose.
31863181
# special case for empty lists
31873182
if len(err) > 1:
3188-
fe = safe_first_element(err)
3183+
fe = cbook.safe_first_element(err)
31893184
if len(err) != len(data) or np.size(fe) > 1:
31903185
raise ValueError("err must be [ scalar | N, Nx1 "
31913186
"or 2xN array-like ]")
@@ -5047,7 +5042,7 @@ def fill_between(self, x, y1, y2=0, where=None, interpolate=False,
50475042
y1slice = y1[ind0:ind1]
50485043
y2slice = y2[ind0:ind1]
50495044
if step is not None:
5050-
step_func = STEP_LOOKUP_MAP["steps-" + step]
5045+
step_func = cbook.STEP_LOOKUP_MAP["steps-" + step]
50515046
xslice, y1slice, y2slice = step_func(xslice, y1slice, y2slice)
50525047

50535048
if not len(xslice):
@@ -5230,7 +5225,7 @@ def fill_betweenx(self, y, x1, x2=0, where=None,
52305225
x1slice = x1[ind0:ind1]
52315226
x2slice = x2[ind0:ind1]
52325227
if step is not None:
5233-
step_func = STEP_LOOKUP_MAP["steps-" + step]
5228+
step_func = cbook.STEP_LOOKUP_MAP["steps-" + step]
52345229
yslice, x1slice, x2slice = step_func(yslice, x1slice, x2slice)
52355230

52365231
if not len(yslice):

lib/matplotlib/axes/_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
import matplotlib.font_manager as font_manager
2828
import matplotlib.text as mtext
2929
import matplotlib.image as mimage
30-
from matplotlib.offsetbox import OffsetBox
3130
from matplotlib.artist import allow_rasterization
32-
from matplotlib.legend import Legend
3331

3432
from matplotlib.rcsetup import cycler, validate_axisbelow
3533

lib/matplotlib/axes/_subplots.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import functools
2-
import warnings
32

43
from matplotlib import docstring
54
import matplotlib.artist as martist

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
backend_tools as tools, cbook, colors, textpath, tight_bbox, transforms,
4848
widgets, get_backend, is_interactive, rcParams)
4949
from matplotlib._pylab_helpers import Gcf
50-
from matplotlib.transforms import Bbox, TransformedBbox, Affine2D
50+
from matplotlib.transforms import Affine2D
5151
from matplotlib.path import Path
5252

5353
try:

lib/matplotlib/backends/backend_cairo.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import copy
1010
import gzip
11-
import sys
1211
import warnings
1312

1413
import numpy as np

lib/matplotlib/backends/backend_gtk3agg.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import sys
2-
31
import numpy as np
42

53
from . import backend_agg, backend_cairo, backend_gtk3
6-
from ._gtk3_compat import gi
74
from .backend_cairo import cairo
85
from .backend_gtk3 import Gtk, _BackendGTK3
96
from matplotlib import transforms

0 commit comments

Comments
 (0)