@@ -90,6 +90,53 @@ The `~matplotlib.animation.HTMLWriter` class can also be used to generate
90
90
an HTML file by asking for the ``html `` writer.
91
91
92
92
93
+ Orthographic projection for mplot3d
94
+ -----------------------------------
95
+ :class: `~mpl_toolkits.mplot3d.axes3d.Axes3D ` now accepts ``proj_type `` keyword
96
+ argument and has a method :meth: `~mpl_toolkits.mplot3d.axes3d.Axes3D.set_proj_type `.
97
+ The default option is ``'persp' `` as before, and supplying ``'ortho' `` enables
98
+ orthographic view.
99
+
100
+ Example
101
+ ~~~~~~~
102
+
103
+ Compare the z-axis which is vertical in orthographic view, but slightly skewed
104
+ in the perspective view.
105
+
106
+ .. plot ::
107
+ :include-source:
108
+ :align: center
109
+
110
+ import numpy as np
111
+ import matplotlib.pyplot as plt
112
+ from mpl_toolkits.mplot3d import Axes3D
113
+
114
+ fig = plt.figure(figsize=(4, 6))
115
+ ax1 = fig.add_subplot(2, 1, 1, projection='3d')
116
+ ax1.set_proj_type('persp')
117
+ ax1.set_title('Perspective (default)')
118
+
119
+ ax2 = fig.add_subplot(2, 1, 2, projection='3d')
120
+ ax2.set_proj_type('ortho')
121
+ ax2.set_title('Orthographic')
122
+
123
+ plt.show()
124
+
125
+
126
+ ``voxels `` function for mplot3d
127
+ -------------------------------
128
+ :class: `~mpl_toolkits.mplot3d.axes3d.Axes3D ` now has a
129
+ `~mpl_toolkits.mplot3d.axes3d.Axes3D.voxels ` method, for visualizing boolean 3D
130
+ data. Uses could include plotting a sparse 3D heat map, or visualizing a
131
+ volumetric model.
132
+
133
+ .. figure :: /gallery/mplot3d/images/sphx_glr_voxels_numpy_logo_001.png
134
+ :target: ../gallery/mplot3d/voxels_numpy_logo.html
135
+ :align: center
136
+ :scale: 70
137
+
138
+ Voxel Demo
139
+
93
140
94
141
Improvements
95
142
++++++++++++
@@ -181,52 +228,6 @@ Pending
181
228
182
229
183
230
184
- Orthographic projection for mplot3d
185
- -----------------------------------
186
- :class: `~mpl_toolkits.mplot3d.axes3d.Axes3D ` now accepts ``proj_type `` keyword
187
- argument and has a method :meth: `~mpl_toolkits.mplot3d.axes3d.Axes3D.set_proj_type `.
188
- The default option is ``'persp' `` as before, and supplying ``'ortho' `` enables
189
- orthographic view.
190
-
191
- Example
192
- ~~~~~~~
193
-
194
- Compare the z-axis which is vertical in orthographic view, but slightly skewed
195
- in the perspective view.
196
-
197
- .. plot ::
198
- :include-source:
199
- :align: center
200
-
201
- import numpy as np
202
- import matplotlib.pyplot as plt
203
- from mpl_toolkits.mplot3d import Axes3D
204
-
205
- fig = plt.figure(figsize=(4, 6))
206
- ax1 = fig.add_subplot(2, 1, 1, projection='3d')
207
- ax1.set_proj_type('persp')
208
- ax1.set_title('Perspective (default)')
209
-
210
- ax2 = fig.add_subplot(2, 1, 2, projection='3d')
211
- ax2.set_proj_type('ortho')
212
- ax2.set_title('Orthographic')
213
-
214
- plt.show()
215
-
216
-
217
- ``voxels `` function for mplot3d
218
- -------------------------------
219
- :class: `~mpl_toolkits.mplot3d.axes3d.Axes3D ` now has a
220
- `~mpl_toolkits.mplot3d.axes3d.Axes3D.voxels ` method, for visualizing boolean 3D
221
- data. Uses could include plotting a sparse 3D heat map, or visualizing a
222
- volumetric model.
223
-
224
- .. figure :: /gallery/mplot3d/images/sphx_glr_voxels_numpy_logo_001.png
225
- :target: ../gallery/mplot3d/voxels_numpy_logo.html
226
- :align: center
227
- :scale: 70
228
-
229
- Voxel Demo
230
231
231
232
232
233
Barbs and Quiver Support Dates
0 commit comments