Exporting crosslink spectrum match plots was bugged in two places.
If there were no PTMs, but the option to display the PTM legend was enabled, it would cause a crash due to the legend having a height of 0. This was resolved by adding another clause to the if function when exporting the CSM plot.
The sequence annotation displayed on the annotated spectra was not being exported properly; cut off in the middle of the crosslinker. This was resolved by extending the canvas height upon export.
Tests were added to ensure cross link spectral match plots display the correct number of annotations and export correctly for all possible export types.
Exporting crosslink spectrum match plots was bugged in two places.
Tests were added to ensure cross link spectral match plots display the correct number of annotations and export correctly for all possible export types.