Skip to content

Disadvantageous grouping logic in svg exports of visualization plots #3

Open
@pierre-kreins

Description

@pierre-kreins

Grouping logic in svg exports of visualization plots (and possibly other plots) is disadvantageous in a number of ways:

  • Every single data point resides inside a a group (containing this single object). The styling is applied to the group and not to the object
  • Same for the marker proteins, the graph lines, the text, etc.
  • Countless (many thousands!) empty groups are present in the svg
  • All these one-object-groups reside in one super group

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:

  • Style is applied to objects directly
  • Objects of a same type (e.g, circles, plot lines, text) are grouped into one group. This relates well to the logical overlaying (text is in front of circles that are in front of plot lines)
  • Empty groups should be removed from the svg

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions