Hello Marcin,<br><br>Your question may have already been answered here: <a href="http://markmail.org/message/zd2nwsztxl4xwbhm">http://markmail.org/message/zd2nwsztxl4xwbhm</a>.<br><br>However I think the last time I tried this was in 3.4 so things may have changed. In my experience the vtkPostScript writer does a better job although it has been quite a while since I've tried gl2ps.<br>
<br>Good luck,<br>Peter.<br><br><div class="gmail_quote">On Thu, Jun 17, 2010 at 8:23 AM, Marcin Sliwowski <span dir="ltr"><<a href="mailto:ms275@duke.edu">ms275@duke.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I am trying to figure out how to save a visualization in Paraview
directly to ps/eps format.<br>
<br>
I have compiled from source paraview 3.6 with the configuration
option VTK_USE_GL2PS set to ON.<br>
<br>
There are many hits in the mailing list archives regarding trying to
use vtkGL2PSExporter to achieve this but I couldn't find anything
that I could make work.<br>
<br>
I know that I can just use WriteImage("test.eps",
Writer="vtkPostScriptWriter") in the python shell to get what I am
asking for.<br>
<br>
However, I wonder if GL2PS could provide a better looking eps file,
and having spent a couple of hours on this, I would really like to
get to the bottom of this.<br>
<br>
I have looked at the vtkGL2PSExporter class reference at
<a href="http://www.vtk.org/doc/nightly/html/classvtkGL2PSExporter.html" target="_blank">http://www.vtk.org/doc/nightly/html/classvtkGL2PSExporter.html</a> and
from there followed the vtkGL2PSExporter (Tests) link which provides
examples of unit testing that is done on the class. One example is
actually titled "test vector EPS output" <br>
<br>
However, even after doing a: from paraview import vtk in the python
shell, when I try to follow the test example and do exp =
vtk.vtkGL2PSExporter() I get the
following error:<br>
<br>
<p style="margin: 0px; text-indent: 0px;"><span style="font-family: 'Courier'; font-size: 9pt; color: rgb(255, 0, 0);">AttributeError: 'module' object has no attribute
'vtkGL2PSExporter'</span></p>
<br>
Can anyone shine any light on how to actually utilize the
vtkGL2PSExporter in Paraview to export an .eps, my impression is
that it has to be done in the Python Shell, and I am not very
familiar with Python.<br>
<br>
Thank You,<br>
Marcin Sliwowski<br>
</div>
<br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br>