Hierarchical compression¶
Visualisation¶
Information about compression can also be accessed from a Htool.HMatrix
with
Leaves of Htool.HMatrix
can be plotted via matplotlib.
fig = plt.figure()
if dimension == 2:
ax = fig.add_subplot(1, 1 ,1)
elif dimension == 3:
ax = fig.add_subplot(1, 1, 1, projection="3d")
ax.set_title("Hmatrix")
Htool.plot(ax, hmatrix)
plt.show()