# Multiple rotations can be combined by multiplying the respective
# :class:`~spharpy.transforms.SphericalHarmonicRotation` objects.
#
rotated_frequency_data = R * R * frequency_data
#
# This corresponds to a rotation of 90 degrees around the z-axis.
#
_, axs = plt.subplots(
    1, 2, subplot_kw={'projection': '3d'}, figsize=(5, 2.5),
    layout='constrained')
spharpy.plot.balloon_wireframe(
    sampling, np.squeeze(Y.basis @ frequency_data.freq),
    ax=axs[0], colorbar=False)
spharpy.plot.balloon_wireframe(
    sampling, np.squeeze(Y.basis @ rotated_frequency_data.freq),
    ax=axs[1], colorbar=False)
