File tree Expand file tree Collapse file tree 5 files changed +40
-5
lines changed Expand file tree Collapse file tree 5 files changed +40
-5
lines changed Original file line number Diff line number Diff line change 1
- '''
2
- Demonstrates using ax.plot's zdir keyword to plot 2D scatterplot data on
1
+ """
2
+ =======================
3
+ Plot 2D data on 3D plot
4
+ =======================
5
+
6
+ Demonstrates using ax.plot's zdir keyword to plot 2D data on
3
7
selective axes of a 3D plot.
4
- '''
8
+ """
5
9
6
10
from mpl_toolkits .mplot3d import Axes3D
7
11
import numpy as np
Original file line number Diff line number Diff line change
1
+ """
2
+ ========================================
3
+ Create 2D bar graphs in different planes
4
+ ========================================
5
+
6
+ Demonstrates making a 3D plot which has 2D bar graphs projected onto
7
+ planes y=0, y=1, etc.
8
+ """
9
+
1
10
from mpl_toolkits .mplot3d import Axes3D
2
11
import matplotlib .pyplot as plt
3
12
import numpy as np
Original file line number Diff line number Diff line change 1
- '''
1
+ """
2
+ ==============================
3
+ Create 3D histogram of 2D data
4
+ ==============================
5
+
2
6
Demo of a histogram for 2 dimensional data as a bar graph in 3D.
3
- '''
7
+ """
4
8
5
9
from mpl_toolkits .mplot3d import Axes3D
6
10
import matplotlib .pyplot as plt
Original file line number Diff line number Diff line change
1
+ """
2
+ ============================
3
+ Draw flat objects in 3D plot
4
+ ============================
5
+
6
+ Demonstrate using pathpatch_2d_to_3d to 'draw' shapes and text on a 3D plot.
7
+ """
8
+
1
9
import matplotlib .pyplot as plt
2
10
from matplotlib .patches import Circle , PathPatch
3
11
# register Axes3D class with matplotlib by importing Axes3D
Original file line number Diff line number Diff line change
1
+ """
2
+ =============================================
3
+ Generate polygons to fill under 3D line graph
4
+ =============================================
5
+
6
+ Demonstrate how to create polygons which fill the space under a line
7
+ graph. In this example polygons are semi-transparent, creating a sort
8
+ of 'jagged stained glass' effect.
9
+ """
10
+
1
11
from mpl_toolkits .mplot3d import Axes3D
2
12
from matplotlib .collections import PolyCollection
3
13
import matplotlib .pyplot as plt
You can’t perform that action at this time.
0 commit comments