Comments (2)
I also met similar issues when using this tool to compose some SVG images, I don't have time to check the code, but according to my experience, I guess this is probably related to the unit your SVG file is saved in (i.e. px or pt). another weird problem is you may do the wrong rotation even if you think you set the right and reasonable parameters(like the rotating pivot), but you may get the wrong final SVG image.
I fix these issues by myself through change each elementary SVG files unit manually using Inkscape (File>Document Properties>Units).
another issue when I use this tool is the code can not get the right width/height if you edit your SVG files using Adobe Illustrator, this is because the format of SVG changed after editing by AI, I fix this issue by "Save as a Copy" through Inkscape.
I do think this tool is fantastic for someone like me to produce publication-quality figures, but it does have some space to improve.
Hope this comment helps you in some way!
from svg_utils.
yes, agreed. The name of the method is misleading. If you feel like it, please open a MR to rename it. You can delegate moveto to moveby and add a deprectiation warning.
from svg_utils.
Related Issues (20)
- Issue reading utf-8 svg files
- Vague error when no height or width tag is in the svg HOT 1
- Scale around center; knowing where to move; getting coordinates, bounding boxes of paths, extracting svg path element's d attribute
- Add "rotate" option for svgutils.transform.TextElement
- save method creates a blank svg HOT 3
- Unknown expected types for SVGFigure parameters HOT 5
- 0.3.1 wheel upload "svgutils-0.3.1-py3-none-any.whl" of 2010-01-04 is not 0.3.1 and breaks existing software HOT 5
- "copy()" deepcopys "self.root" not "self", leading to unexpected behaviour not in line with documentation HOT 2
- [0.3.3] Started producing SVG without width, height and viewBox HOT 5
- Plans for dropping support for end-of-life Python 2.7 and 3.5? HOT 2
- Get rid of issue label "hacktoberfest"? HOT 2
- Issues with SVGFigure Width and Height not being set HOT 9
- Docs still list 'scale_xy' as a method instead of 'scale'
- UnicodeDecodeError: svgutils.transform.fromfile not able to read the svgfile generated by inkscape HOT 1
- `compose` creates empty figure HOT 2
- Workaround mpl units bug not necessary
- Expose functionality as as command line tool
- 对可交互式的svg图片(pygal生成),拼接之后显示黑色框 For interactive SVG pictures (generated by pygal), black boxes are displayed after splicing HOT 1
- SVGFigure does not set width and height element if created directly HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from svg_utils.