Open pierre-kreins opened 7 months ago
We are relying on Qt SVG to export the plots. The excessive use of groups is a known behavior of Qt SVG support.
The code could be migrated to Qt 6.5+ where new work started on the SVG generator. Previously, SVG Tiny 1.2 was produced, now also SVG 1.1 can be produced.
I don't know if there will be significant changes to the output.
It is also possible to perform post-processing on the SVG's XML to re-arrange, merge, remove groups.
Grouping logic in svg exports of visualization plots (and possibly other plots) is disadvantageous in a number of ways:
This results in severe performance issues when trying to use Inkscape to modify t-sne plots where several thousand proteins are displayed. Regrouping operations can be impossible even with Inkscape graphic options reduced to a bare minimum (M1 MacBook Pro). I suggest the following modifications: