Error in svg writer
This is a repost from https://github.com/pyvista/pyvista/issues/901. As per the response there, the issue seems to be with the function "vtk.vtkGL2PSExporter()".
When using the function below to export an image that contains label text with the "<" character in it, the output is an invalid .svg file since the save function does not seem to be properly escaping this character. I suspect a similar issue applies to the ">" character if they are used sequentially.
import pyvista as pv poly = pv.Polygon() p1 = pv.Plotter(notebook=False) p1.add_mesh(poly, label="Test label <") p1.add_legend() p1.save_graphic('test.svg', raster=False)