On 12/12/23 06:39, Masoud Ahmadi wrote:
I save my results as VTK files using write_vtk.
I have been trying to get a vector graphic (like SVG) to display smooth and
nice results.
I tried ParaView, but I think they do not support vector graphics in recent
versions.
I also tried to write a Python code for this purpose using vtk and matplotlib
libraries. It works almost fine, but when I want to plot the mesh too, there
are problems.
I used Triangulation from matplotlib.tri, but it only supports triangles mesh,
while my mesh type is quadrilaterals.
So, the question is, what is the best way to get SVG image of a VTK file?
Are you asking how to generate a SVG of the solution, or of a mesh? For the
latter, you can use GridOut. For the former, I do not know whether any of the
usual visualization tools support this, but I doubt that it would be useful:
If you have a lot of cells, *any* scalable representation would have an
enormous number of triangles that would not be fun to work with. Just export
things as a PNG with sufficient resolution.
Best
W.
--
------------------------------------------------------------------------
Wolfgang Bangerth email: [email protected]
www: http://www.math.colostate.edu/~bangerth/
--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see
https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/dealii/4c30a863-a6fc-29d1-70cc-729381a23d0a%40colostate.edu.