function enableDefaultInteractivity(ax)
%ENABLEDEFAULTINTERACTIVITY turns on default interactivity
%  ENABLEDEFAULTINTERACTIVITY(AXES) turns on default interactivity on
%  given axes, uiaxes, geoaxes or polaraxes

%   Copyright 2018-2019 The MathWorks, Inc.

narginchk(1,1);
if isa(ax,'matlab.graphics.axis.AbstractAxes') || ...
    isa(ax,'matlab.ui.control.UIAxes')

    ax.InteractionContainer.Enabled = 'on';
else
    error(message('MATLAB:graphics:interaction:InvalidInputAxes'));
end
