def METHOD_NAME(sine):
    """Deprecate yscale parameter in plot functions"""
    with pytest.warns(PendingDeprecationWarning,
                      match="The yscale parameter will be removed"):
        create_figure()
        pf.plot.spectrogram(sine, yscale='linear')
    if version.parse(pf.__version__) >= version.parse('0.6.0'):
        with pytest.raises(AttributeError):
            # remove xscale from pyfar 0.6.0!
            create_figure()
            pf.plot.spectrogram(sine)