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

Skip to content

Commit 865e87c

Browse files
committed
Add a warning
1 parent 90dfb0b commit 865e87c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/matplotlib/projections/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@
5959
try:
6060
from mpl_toolkits.mplot3d import Axes3D
6161
except ImportError:
62+
import warnings
63+
warnings.warn("Unable to import Axes3D. This may be due to multiple versions of"
64+
"Matplotlib being installed (e.g. as a system package and as a pip"
65+
"package). As a result, the 3D projection is not available.")
6266
Axes3D = None
6367

6468

0 commit comments

Comments
 (0)