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

Skip to content

Commit 0635dfe

Browse files
committed
Remove the use of axes_grid from plotting userguide
1 parent dd8a782 commit 0635dfe

6 files changed

Lines changed: 10 additions & 9 deletions

File tree

doc/users/plotting/examples/anchored_box01.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import matplotlib.pyplot as plt
2-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
2+
from matplotlib.offsetbox import AnchoredText
33

44
fig=plt.figure(1, figsize=(3,3))
55
ax = plt.subplot(111)

doc/users/plotting/examples/anchored_box02.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from matplotlib.patches import Circle
22
import matplotlib.pyplot as plt
3-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredDrawingArea
3+
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredDrawingArea
44

55
fig=plt.figure(1, figsize=(3,3))
66
ax = plt.subplot(111)

doc/users/plotting/examples/anchored_box03.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from matplotlib.patches import Ellipse
22
import matplotlib.pyplot as plt
3-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredAuxTransformBox
3+
from mpl_toolkits.axes_grid1.anchored_artists import AnchoredAuxTransformBox
44

55
fig=plt.figure(1, figsize=(3,3))
66
ax = plt.subplot(111)

doc/users/plotting/examples/annotate_explain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
fig = plt.figure(1, figsize=(8,3))
99
fig.clf()
10-
from mpl_toolkits.axes_grid.axes_grid import AxesGrid
11-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
10+
from mpl_toolkits.axes_grid1.axes_grid import AxesGrid
11+
from matplotlib.offsetbox import AnchoredText
1212

1313
#from matplotlib.font_manager import FontProperties
1414

doc/users/plotting/examples/connectionstyle_demo.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
fig = plt.figure(1, figsize=(8,5))
66
fig.clf()
7-
from mpl_toolkits.axes_grid.axes_grid import AxesGrid
8-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
7+
from mpl_toolkits.axes_grid1.axes_grid import AxesGrid
8+
from matplotlib.offsetbox import AnchoredText
99

1010
#from matplotlib.font_manager import FontProperties
1111

doc/users/plotting/examples/simple_annotate01.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77

88
fig = plt.figure(1)
99
fig.clf()
10-
from mpl_toolkits.axes_grid.axes_grid import Grid
11-
from mpl_toolkits.axes_grid.anchored_artists import AnchoredText
10+
from mpl_toolkits.axes_grid1.axes_grid import Grid
11+
from matplotlib.offsetbox import AnchoredText
1212

1313
from matplotlib.font_manager import FontProperties
1414

@@ -129,3 +129,4 @@ def add_at(ax, t, loc=2):
129129
#ax.set_xlim(0, 1)
130130
#ax.set_ylim(0, 1)
131131
plt.draw()
132+
plt.show()

0 commit comments

Comments
 (0)