Current collected state Current
Observed since 20 Oct, 21:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A module for patching matplotlib-generated SVG files to make them work Affinity Designer.
Patches Matplotlib-generated svg to be able to open them properly in Affinity Designer.
It can be yours simply though
pip install AffinitySvgPatcher
From python
from AffinitySvgPatcher import AffinitySvgPatcher
patcher = AffinitySvgPatcher('path/to/file.svg')
patcher.patch_svg(save = True, save_dir = 'dir/to/save', postfix = '-patched')
From command line
AffinitySvgPatcher path/to/file.svg --postfix patched --dir .
For now I have discovered the following tricks:
text elements, replace font attributes with font-size and font-family (font is apparently ignored by AD),xlink:href (which are deprecated) replace x and y attributes with transform=translate(x y) (AD seems to ignore x or y attributes).If more issues become known, PRs or GH issues are welcome! :)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 1 Jul 2024 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:21446daf90a7cd7a43fa4d2a4a96278633f0d9f1a92d1b644ff538e3bd03f988