changed the plot function argument color to be a kwargs argument of...
I updated the spectrogram_plot_crop branch with what we had talked about in !256 (merged)
Specifically, the plot method now allow more matplotlib options in customizing annotations.
The 4 following options are supported, but more can be easily added:
Color, linewidth, fontweight, fontsize.
You can test these changes with:
from ketos.audio.spectrogram import MagSpectrogram
from matplotlib import pyplot as plt
spec = MagSpectrogram.from_wav('ketos/tests/assets/grunt1.wav', window=0.2, step=0.02)
spec.annotate(start=1.1, end=1.6, freq_min=70, freq_max=600, label=1)
spec = spec.crop(freq_max=800)
fig = spec.plot(show_annot=True, annot_kwargs={"color": "C1", "fontweight": "bold", "linewidth": 5})
fig.savefig("spec_w_annot_box.png")
plt.close(fig)
If you are happy with this, you can merge it in your branch and merge it to development.