SVG support has landed in tomosipo!
In tomosipo, you can now create animated SVGs! In a Jupyter notebook, the code below shows an animation of a cone beam geometry:
import tomosipo as ts
ts.svg(
ts.volume(),
ts.cone(angles=50, shape=2, src_orig_dist=2.5, src_det_dist=6),
duration=3,
base64=True,
)
You can click on the animation to pause and unpause. To scroll through the animation, keep your mouse pressed down and move from left to right.
To save the svg for further processing in, for instance, Inkscape, execute:
import tomosipo as ts
svg_object = ts.svg(
ts.volume(),
ts.cone(angles=1, shape=2, src_orig_dist=2.5, src_det_dist=6),
height=200,
width=320,
duration=3,
)
svg_object.save("test.svg")
This can really save time when making figures for your paper!