AttributeError: Subplot instance has no attribute 'xlabel'

Is this a bug ? ax1.xlabel(r'Frequency $f$ (Hz)')

    > AttributeError: Subplot instance has no attribute 'xlabel'

Yes, but it is a bug in your code (wink). See help(ax1). The method
is ax1.set_xlabel.

KDJ