vector-graphics

How to render math symbols as text in SVG/EPS/PDF images?

How to render math symbols as text in SVG/EPS/PDF images? Question: When creating graphs using, for instance, Python. It is possible to save these figures as vector graphics (SVG, EPS, PDF) and the text is rendered separately. This makes it possible to select or search the text when shown in a pdf file. However, I’ve …

Total answers: 2

Flow visualisation in python using curved (path-following) vectors

Flow visualisation in python using curved (path-following) vectors Question: I would like to plot a vector field with curved arrows in python, as can be done in vfplot (see below) or IDL. You can get close in matplotlib, but using quiver() limits you to straight vectors (see below left) whereas streamplot() doesn’t seem to permit …

Total answers: 5

Error when trying to overload an operator "/"

Error when trying to overload an operator "/" Question: I recently start teaching myself game programming. Someone recommend me to start with Python and I got the book “Beginning game development with Python and Pygame: From novice to professional”. I got to a part where they teach about Vectors and creating a Vector2 class. Everything …

Total answers: 2

Turtle module – Saving an image

Turtle module – Saving an image Question: I would like to figure out how to save a bitmap or vector graphics image after creating a drawing with python’s turtle module. After a bit of googling I can’t find an easy answer. I did find a module called canvas2svg, but I’m very new to python and …

Total answers: 2