I am rendering a mesh with Pyvista (version 0.43.5) and I have a problem with multiline texts at export.
In the interactive window and when I take a screenshot, a multiline title (or any other multiline text) is rendered well. But when I export to svg, the multiline is gone:
interactive window and screenshot (OK) | export to svg (via plotter.save_graphic) (KO) |
---|---|
Here is the code I use:
import pyvista as pv
mesh = pv.Cylinder()
pl = pv.Plotter(off_screen=True)
pl.add_mesh(mesh, label="cyl")
pl.add_title("first linensecond linenthird one")
pl.save_graphic('multiline_title_test.svg') # 'svg', 'eps', 'ps', 'pdf', 'tex'
pl.show(screenshot='multiline_title_test.png')
pl.close()
Question: is there a way to preserve multiline at svg export? (using pyvista or maybe vtk)