|
6 | 6 | from mpl_toolkits.mplot3d import Axes3D, axes3d, proj3d, art3d
|
7 | 7 | import matplotlib as mpl
|
8 | 8 | from matplotlib.backend_bases import MouseButton
|
| 9 | +from matplotlib.cbook import MatplotlibDeprecationWarning |
9 | 10 | from matplotlib import cm
|
10 | 11 | from matplotlib import colors as mcolors
|
11 | 12 | from matplotlib.testing.decorators import image_comparison, check_figures_equal
|
12 | 13 | from matplotlib.testing.widgets import mock_event
|
13 | 14 | from matplotlib.collections import LineCollection, PolyCollection
|
14 | 15 | from matplotlib.patches import Circle
|
| 16 | + |
15 | 17 | import matplotlib.pyplot as plt
|
16 | 18 | import numpy as np
|
17 | 19 |
|
@@ -725,7 +727,7 @@ def test_add_collection3d_zs_scalar():
|
725 | 727 | @mpl3d_image_comparison(['axes3d_labelpad.png'], remove_text=False)
|
726 | 728 | def test_axes3d_labelpad():
|
727 | 729 | fig = plt.figure()
|
728 |
| - ax = fig.add_axes(Axes3D(fig)) |
| 730 | + ax = fig.add_axes(Axes3D(fig, auto_add_to_figure=False)) |
729 | 731 | # labelpad respects rcParams
|
730 | 732 | assert ax.xaxis.labelpad == mpl.rcParams['axes.labelpad']
|
731 | 733 | # labelpad can be set in set_label
|
@@ -1148,7 +1150,8 @@ def test_inverted_cla():
|
1148 | 1150 |
|
1149 | 1151 | def test_ax3d_tickcolour():
|
1150 | 1152 | fig = plt.figure()
|
1151 |
| - ax = Axes3D(fig) |
| 1153 | + with pytest.warns(MatplotlibDeprecationWarning): |
| 1154 | + ax = Axes3D(fig) |
1152 | 1155 |
|
1153 | 1156 | ax.tick_params(axis='x', colors='red')
|
1154 | 1157 | ax.tick_params(axis='y', colors='red')
|
|
0 commit comments