2
2
import matplotlib as mpl
3
3
from matplotlib import pyplot as plt
4
4
import mpl_toolkits
5
- from mpl_toolkits .mplot3d .axes3d import Axes3D
6
- from mpl_toolkits .mplot3d .art3d import Line3DCollection , Poly3DCollection
7
- from matplotlib .collections import LineCollection , PathCollection
5
+ from mpl_toolkits import mplot3d
8
6
9
7
# TODO: see which test cases the matlab2tikz guys used [!!!]
10
8
# TODO: find suitable test cases for remaining functions. [!!]
@@ -135,7 +133,7 @@ def _recursive_cleanfigure(obj, targetResolution=600, scalePrecision=1.0):
135
133
targetResolution = targetResolution ,
136
134
scalePrecision = scalePrecision ,
137
135
)
138
- elif isinstance (child , mpl_toolkits . mplot3d .art3d .Line3D ):
136
+ elif isinstance (child , mplot3d .art3d .Line3D ):
139
137
ax = child .axes
140
138
fig = ax .figure
141
139
_cleanline (
@@ -161,11 +159,11 @@ def _recursive_cleanfigure(obj, targetResolution=600, scalePrecision=1.0):
161
159
warnings .warn (
162
160
"Cleaning Line Collections (scatter plot) is not supported yet."
163
161
)
164
- elif isinstance (child , mpl_toolkits . mplot3d .art3d .Line3DCollection ):
162
+ elif isinstance (child , mplot3d .art3d .Line3DCollection ):
165
163
import warnings
166
164
167
165
warnings .warn ("Cleaning Line3DCollection is not supported yet." )
168
- elif isinstance (child , mpl_toolkits . mplot3d .art3d .Poly3DCollection ):
166
+ elif isinstance (child , mplot3d .art3d .Poly3DCollection ):
169
167
import warnings
170
168
171
169
warnings .warn ("Cleaning Poly3DCollections is not supported yet." )
0 commit comments