phys2 / belki

Visual exploration of multi-dimensional proteomics data
GNU General Public License v3.0
5 stars 0 forks source link

Disadvantageous grouping logic in svg exports of visualization plots #3

Open pierre-kreins opened 7 months ago

pierre-kreins commented 7 months ago

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:

ypnos commented 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.