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 788ca1a

Browse filesBrowse files
committed
Move mpl_toolkits section
1 parent 70a296d commit 788ca1a
Copy full SHA for 788ca1a
Expand file treeCollapse file tree

21 files changed

+45
-21
lines changed

‎.isort.cfg

Copy file name to clipboard
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[settings]
2+
known_mpltoolkits = mpl_toolkits
3+
known_first_party = matplotlib
4+
sections=FUTURE,STDLIB,THIRDPARTY,MPLTOOLKITS,FIRSTPARTY,LOCALFOLDER
5+
force_sort_within_sections = true

‎.pre-commit-config.yaml

Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@ repos:
4545
rev: 5.11.2
4646
hooks:
4747
- id: isort
48-
name: isort (python)
49-
args: ['--force-sort-within-sections', 'true']
48+
name: isort (python).
49+
# args: ['--settings-path', 'true']
5050
files: ^tutorials/|^examples/

‎examples/axes_grid1/demo_anchored_direction_arrows.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/demo_anchored_direction_arrows.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
========================
55
66
"""
7-
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredDirectionArrows
87
import numpy as np
98

9+
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredDirectionArrows
10+
1011
import matplotlib.font_manager as fm
1112
import matplotlib.pyplot as plt
1213

‎examples/axes_grid1/demo_axes_grid2.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/demo_axes_grid2.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
Grid of images with shared xaxis and yaxis.
77
"""
88

9-
from mpl_toolkits.axes_grid1 import ImageGrid
109
import numpy as np
1110

11+
from mpl_toolkits.axes_grid1 import ImageGrid
12+
1213
from matplotlib import cbook
1314
import matplotlib.colors
1415
import matplotlib.pyplot as plt

‎examples/axes_grid1/demo_axes_hbox_divider.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/demo_axes_hbox_divider.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
1111
"""
1212

13+
import numpy as np
14+
1315
from mpl_toolkits.axes_grid1.axes_divider import HBoxDivider, VBoxDivider
1416
import mpl_toolkits.axes_grid1.axes_size as Size
15-
import numpy as np
1617

1718
import matplotlib.pyplot as plt
1819

‎examples/axes_grid1/demo_axes_rgb.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/demo_axes_rgb.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
channels.
99
"""
1010

11-
from mpl_toolkits.axes_grid1.axes_rgb import RGBAxes, make_rgb_axes
1211
import numpy as np
1312

13+
from mpl_toolkits.axes_grid1.axes_rgb import RGBAxes, make_rgb_axes
14+
1415
from matplotlib import cbook
1516
import matplotlib.pyplot as plt
1617

‎examples/axes_grid1/inset_locator_demo2.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/inset_locator_demo2.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@
1212
:doc:`/gallery/subplots_axes_and_figures/zoom_inset_axes`.
1313
"""
1414

15+
import numpy as np
16+
1517
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredSizeBar
1618
from mpl_toolkits.axes_grid1.inset_locator import mark_inset, zoomed_inset_axes
17-
import numpy as np
1819

1920
from matplotlib import cbook
2021
import matplotlib.pyplot as plt

‎examples/axes_grid1/scatter_hist_locatable_axes.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/scatter_hist_locatable_axes.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
:doc:`/gallery/lines_bars_and_markers/scatter_hist` example.
1616
"""
1717

18-
from mpl_toolkits.axes_grid1 import make_axes_locatable
1918
import numpy as np
2019

20+
from mpl_toolkits.axes_grid1 import make_axes_locatable
21+
2122
import matplotlib.pyplot as plt
2223

2324
# Fixing random state for reproducibility

‎examples/axes_grid1/simple_axesgrid.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/simple_axesgrid.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
Align multiple images using `~mpl_toolkits.axes_grid1.axes_grid.ImageGrid`.
77
"""
88

9-
from mpl_toolkits.axes_grid1 import ImageGrid
109
import numpy as np
1110

11+
from mpl_toolkits.axes_grid1 import ImageGrid
12+
1213
import matplotlib.pyplot as plt
1314

1415
im1 = np.arange(100).reshape((10, 10))

‎examples/axes_grid1/simple_axisline4.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/simple_axisline4.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
================
55
66
"""
7-
from mpl_toolkits.axes_grid1 import host_subplot
87
import numpy as np
98

9+
from mpl_toolkits.axes_grid1 import host_subplot
10+
1011
import matplotlib.pyplot as plt
1112

1213
ax = host_subplot(111)

‎examples/axes_grid1/simple_colorbar.py

Copy file name to clipboardExpand all lines: examples/axes_grid1/simple_colorbar.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@
44
===============
55
66
"""
7-
from mpl_toolkits.axes_grid1 import make_axes_locatable
87
import numpy as np
98

9+
from mpl_toolkits.axes_grid1 import make_axes_locatable
10+
1011
import matplotlib.pyplot as plt
1112

1213
ax = plt.subplot()

‎examples/axisartist/demo_axis_direction.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_axis_direction.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44
===================
55
"""
66

7+
import numpy as np
8+
79
import mpl_toolkits.axisartist as axisartist
810
import mpl_toolkits.axisartist.angle_helper as angle_helper
911
import mpl_toolkits.axisartist.grid_finder as grid_finder
1012
from mpl_toolkits.axisartist.grid_helper_curvelinear import \
1113
GridHelperCurveLinear
12-
import numpy as np
1314

1415
from matplotlib.projections import PolarAxes
1516
import matplotlib.pyplot as plt

‎examples/axisartist/demo_axisline_style.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_axisline_style.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
example.
1212
"""
1313

14-
from mpl_toolkits.axisartist.axislines import AxesZero
1514
import numpy as np
1615

16+
from mpl_toolkits.axisartist.axislines import AxesZero
17+
1718
import matplotlib.pyplot as plt
1819

1920
fig = plt.figure()

‎examples/axisartist/demo_curvelinear_grid.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_curvelinear_grid.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,11 @@
1111
shown on the second plot, to create polar projections in a rectangular box.
1212
"""
1313

14+
import numpy as np
15+
1416
from mpl_toolkits.axisartist import Axes, HostAxes, angle_helper
1517
from mpl_toolkits.axisartist.grid_helper_curvelinear import \
1618
GridHelperCurveLinear
17-
import numpy as np
1819

1920
from matplotlib.projections import PolarAxes
2021
import matplotlib.pyplot as plt

‎examples/axisartist/demo_curvelinear_grid2.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_curvelinear_grid2.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
As showcase on the plot, a 5x5 matrix is displayed on the axes.
1111
"""
1212

13+
import numpy as np
14+
1315
from mpl_toolkits.axisartist.axislines import Axes
1416
from mpl_toolkits.axisartist.grid_finder import (ExtremeFinderSimple,
1517
MaxNLocator)
1618
from mpl_toolkits.axisartist.grid_helper_curvelinear import \
1719
GridHelperCurveLinear
18-
import numpy as np
1920

2021
import matplotlib.pyplot as plt
2122

‎examples/axisartist/demo_floating_axes.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_floating_axes.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@
1515
`~.floating_axes.GridHelperCurveLinear`.
1616
"""
1717

18+
import numpy as np
19+
1820
import mpl_toolkits.axisartist.angle_helper as angle_helper
1921
import mpl_toolkits.axisartist.floating_axes as floating_axes
2022
from mpl_toolkits.axisartist.grid_finder import (DictFormatter, FixedLocator,
2123
MaxNLocator)
22-
import numpy as np
2324

2425
from matplotlib.projections import PolarAxes
2526
import matplotlib.pyplot as plt

‎examples/axisartist/demo_floating_axis.py

Copy file name to clipboardExpand all lines: examples/axisartist/demo_floating_axis.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@
1010
:doc:`/gallery/axisartist/demo_curvelinear_grid`.
1111
"""
1212

13+
import numpy as np
14+
1315
from mpl_toolkits.axisartist import GridHelperCurveLinear, HostAxes
1416
import mpl_toolkits.axisartist.angle_helper as angle_helper
15-
import numpy as np
1617

1718
from matplotlib.projections import PolarAxes
1819
import matplotlib.pyplot as plt

‎examples/axisartist/simple_axis_pad.py

Copy file name to clipboardExpand all lines: examples/axisartist/simple_axis_pad.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
66
"""
77

8+
import numpy as np
9+
810
import mpl_toolkits.axisartist as axisartist
911
import mpl_toolkits.axisartist.angle_helper as angle_helper
1012
import mpl_toolkits.axisartist.grid_finder as grid_finder
1113
from mpl_toolkits.axisartist.grid_helper_curvelinear import \
1214
GridHelperCurveLinear
13-
import numpy as np
1415

1516
from matplotlib.projections import PolarAxes
1617
import matplotlib.pyplot as plt

‎examples/axisartist/simple_axisartist1.py

Copy file name to clipboardExpand all lines: examples/axisartist/simple_axisartist1.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,10 @@
1313
.. redirect-from:: /gallery/axisartist/simple_axisline2
1414
"""
1515

16-
from mpl_toolkits import axisartist
1716
import numpy as np
1817

18+
from mpl_toolkits import axisartist
19+
1920
import matplotlib.pyplot as plt
2021

2122
fig = plt.figure(figsize=(6, 3), constrained_layout=True)

‎examples/mplot3d/pathpatch3d.py

Copy file name to clipboardExpand all lines: examples/mplot3d/pathpatch3d.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
Demonstrate using `.pathpatch_2d_to_3d` to 'draw' shapes and text on a 3D plot.
77
"""
88

9-
import mpl_toolkits.mplot3d.art3d as art3d
109
import numpy as np
1110

11+
import mpl_toolkits.mplot3d.art3d as art3d
12+
1213
from matplotlib.patches import Circle, PathPatch
1314
import matplotlib.pyplot as plt
1415
from matplotlib.text import TextPath

‎examples/mplot3d/subplot3d.py

Copy file name to clipboardExpand all lines: examples/mplot3d/subplot3d.py
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
Demonstrate including 3D plots as subplots.
77
"""
88

9-
from mpl_toolkits.mplot3d.axes3d import get_test_data
109
import numpy as np
1110

11+
from mpl_toolkits.mplot3d.axes3d import get_test_data
12+
1213
from matplotlib import cm
1314
import matplotlib.pyplot as plt
1415

0 commit comments

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