Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5873b1d

Browse filesBrowse files
committed
don't import functions directly
1 parent 695e1e1 commit 5873b1d
Copy full SHA for 5873b1d

File tree

Expand file treeCollapse file tree

3 files changed

+8
-11
lines changed
Filter options
Expand file treeCollapse file tree

3 files changed

+8
-11
lines changed

‎lib/matplotlib/collections.py

Copy file name to clipboardExpand all lines: lib/matplotlib/collections.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
import matplotlib as mpl
1717
from . import (_path, artist, cbook, cm, colors as mcolors, docstring,
1818
lines as mlines, path as mpath, transforms)
19-
from .rcsetup import validate_joinstyle, validate_capstyle
2019
import warnings
2120

2221

@@ -600,7 +599,7 @@ def set_capstyle(self, cs):
600599
cs : {'butt', 'round', 'projecting'}
601600
The capstyle
602601
"""
603-
validate_capstyle(cs)
602+
mpl.rcsetup.validate_capstyle(cs)
604603
self._capstyle = cs
605604

606605
def get_capstyle(self):
@@ -615,7 +614,7 @@ def set_joinstyle(self, js):
615614
js : {'miter', 'round', 'bevel'}
616615
The joinstyle
617616
"""
618-
validate_joinstyle(js)
617+
mpl.rcsetup.validate_joinstyle(js)
619618
self._joinstyle = js
620619

621620
def get_joinstyle(self):

‎lib/matplotlib/lines.py

Copy file name to clipboardExpand all lines: lib/matplotlib/lines.py
+4-5Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
_to_unmasked_float_array, ls_mapper, ls_mapper_r, STEP_LOOKUP_MAP)
1717
from .markers import MarkerStyle
1818
from .path import Path
19-
from .rcsetup import validate_joinstyle, validate_capstyle
2019
from .transforms import (
2120
Affine2D, Bbox, BboxTransformFrom, BboxTransformTo, TransformedPath)
2221

@@ -1353,7 +1352,7 @@ def set_dash_joinstyle(self, s):
13531352
s : {'miter', 'round', 'bevel'}
13541353
For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
13551354
"""
1356-
validate_joinstyle(s)
1355+
mpl.rcsetup.validate_joinstyle(s)
13571356
if self._dashjoinstyle != s:
13581357
self.stale = True
13591358
self._dashjoinstyle = s
@@ -1367,7 +1366,7 @@ def set_solid_joinstyle(self, s):
13671366
s : {'miter', 'round', 'bevel'}
13681367
For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
13691368
"""
1370-
validate_joinstyle(s)
1369+
mpl.rcsetup.validate_joinstyle(s)
13711370
if self._solidjoinstyle != s:
13721371
self.stale = True
13731372
self._solidjoinstyle = s
@@ -1397,7 +1396,7 @@ def set_dash_capstyle(self, s):
13971396
s : {'butt', 'round', 'projecting'}
13981397
For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
13991398
"""
1400-
validate_capstyle(s)
1399+
mpl.rcsetup.validate_capstyle(s)
14011400
if self._dashcapstyle != s:
14021401
self.stale = True
14031402
self._dashcapstyle = s
@@ -1411,7 +1410,7 @@ def set_solid_capstyle(self, s):
14111410
s : {'butt', 'round', 'projecting'}
14121411
For examples see :doc:`/gallery/lines_bars_and_markers/joinstyle`.
14131412
"""
1414-
validate_capstyle(s)
1413+
mpl.rcsetup.validate_capstyle(s)
14151414
if self._solidcapstyle != s:
14161415
self.stale = True
14171416
self._solidcapstyle = s

‎lib/matplotlib/patches.py

Copy file name to clipboardExpand all lines: lib/matplotlib/patches.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
get_parallels, inside_circle, make_wedged_bezier2,
1515
split_bezier_intersecting_with_closedpath, split_path_inout)
1616
from .path import Path
17-
from .rcsetup import validate_joinstyle, validate_capstyle
1817

1918

2019
@cbook._define_aliases({
@@ -462,7 +461,7 @@ def set_capstyle(self, s):
462461
----------
463462
s : {'butt', 'round', 'projecting'}
464463
"""
465-
validate_capstyle(s)
464+
mpl.rcsetup.validate_capstyle(s)
466465
self._capstyle = s
467466
self.stale = True
468467

@@ -477,7 +476,7 @@ def set_joinstyle(self, s):
477476
----------
478477
s : {'miter', 'round', 'bevel'}
479478
"""
480-
validate_joinstyle(s)
479+
mpl.rcsetup.validate_joinstyle(s)
481480
self._joinstyle = s
482481
self.stale = True
483482

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.