Current collected state Current
Observed since 20 Oct, 21:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
AffinitySvgPatcher
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.
Declarations describe requirements; they are not a resolved dependency graph.
bdist_wheel · 28.7 KB · Python py3
sdist · 39.82 KB · Python source
Observed since 20 Oct, 21:05 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:ebaa7b2fc099fe78742819d7fc0bda3ee48d6f5d0b6037e66c53cda85494877f