File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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
37selective axes of a 3D plot.
4- '''
8+ """
59
610from mpl_toolkits .mplot3d import Axes3D
711import 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+
110from mpl_toolkits .mplot3d import Axes3D
211import matplotlib .pyplot as plt
312import 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+
26Demo of a histogram for 2 dimensional data as a bar graph in 3D.
3- '''
7+ """
48
59from mpl_toolkits .mplot3d import Axes3D
610import 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+
19import matplotlib .pyplot as plt
210from matplotlib .patches import Circle , PathPatch
311# 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+
111from mpl_toolkits .mplot3d import Axes3D
212from matplotlib .collections import PolyCollection
313import matplotlib .pyplot as plt
You can’t perform that action at this time.
0 commit comments