Added macro hook for 2D data and axes.