Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 29e3a8d

Browse files
committed
DOC: add what's new entry
MNT: lint DOC: update whats new
1 parent 5b5bf70 commit 29e3a8d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
New and improved 3D bar plots
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
We fixed a long standing issue with incorrect z-sorting in 3d bar graphs.
5+
It is now possible to produce 3D bar charts that render correctly for all
6+
viewing angles by using `.Axes3D.bar3d_grid`. In addition, bar charts with
7+
hexagonal cross section can now be created with `.Axes3Dx.hexbar3d`. This
8+
supports visualisation of density maps on hexagonal tessellations of the data
9+
space. Two new artist collections are introduced to support this functionality:
10+
`.Bar3DCollection` and `.HexBar3DCollection`.
11+
12+
13+
.. plot::
14+
:include-source: true
15+
:alt: Example of creating hexagonal 3D bars
16+
17+
import matplotlib.pyplot as plt
18+
import numpy as np
19+
20+
fig, (ax1, ax2) = plt.subplots(1, 2, subplot_kw={'projection': '3d'})
21+
bars3d = ax1.bar3d_grid([0, 1], [0, 1], [1, 2], '0.8', facecolors=('m', 'y'))
22+
hexbars3d = ax2.hexbar3d([0, 1], [0, 1], [1, 2], '0.8', facecolors=('m', 'y'))
23+
plt.show()

0 commit comments

Comments
 (0)