File tree 1 file changed +15
-7
lines changed
1 file changed +15
-7
lines changed Original file line number Diff line number Diff line change 15
15
# Kevin Hughes
16
16
# License: BSD 3 clause
17
17
18
- from sklearn .decomposition import PCA
18
+ # %%
19
+ # Create the data
20
+ # ---------------
19
21
20
22
import numpy as np
21
- import matplotlib .pyplot as plt
22
- from scipy import stats
23
23
24
-
25
- # #############################################################################
26
- # Create the data
24
+ from scipy import stats
27
25
28
26
e = np .exp (1 )
29
27
np .random .seed (4 )
@@ -51,8 +49,18 @@ def pdf(x):
51
49
b /= norm
52
50
53
51
54
- # #############################################################################
52
+ # %%
55
53
# Plot the figures
54
+ # ----------------
55
+
56
+ from sklearn .decomposition import PCA
57
+
58
+ import matplotlib .pyplot as plt
59
+
60
+ # unused but required import for doing 3d projections with matplotlib < 3.2
61
+ import mpl_toolkits .mplot3d # noqa: F401
62
+
63
+
56
64
def plot_figs (fig_num , elev , azim ):
57
65
fig = plt .figure (fig_num , figsize = (4 , 3 ))
58
66
plt .clf ()
You can’t perform that action at this time.
0 commit comments