[xcrysden] Print in vector format + anti-aliasing using scripting

Tone Kokalj tone.kokalj at ijs.si
Thu Jun 6 14:59:33 CEST 2013


On Thu, 2013-06-06 at 04:59 -0700, Tom Marvollo Riddle wrote:
> Dear all,
> 
> I intend to produce images from several pwscf output files.
> I already used produced some png files using scripting features
> of XCrysden (a very nice feature).
> 
> Unfortunately somehow I need the picture files in vector format.

I would strongly advice against it (unless you will print a few meter
wide picture, you don't need it). The reason is that the vectorial EPS
files are huge (easily over 100 MB unless the number of atoms is really
small).

My recommendation would be: 
1. maximize xcrysden's display window
2. maximize the displayed structure 
3. turn on antialiasing (play a bit with anti-alias settings
Modify->.../Antialias Parameters for good result)
4. print in PNG

> The problem is I cannot find documentation about how to print to
> vector graphics format such as eps using scripting. 

It automatically prints vectorial EPS for "Lighting-Off" mode and a
bitmap one for "Lighting-On" mode (for the above reason). You will have
to modify or write a new procedure/routine (see "proc
scripting::printToFile" in file Tcl/scripting.tcl). If you write a new
routine just embed it into your scripting file.

> I also cannot find a way to turn on anti-aliasing.

There is a clever trick of how to do various features via scripting
(invented by Hande Ustunel Toffoli) and it goes as follows:

1. save the scripting file (File-->Save Current State and Structure)
without the feature turned on. 
2. turn the feature on
3. save a new scripting file
4. compare the two scripting files and find the difference ....

Regards,
-- 
Anton Kokalj
J. Stefan Institute, Jamova 39, 1000 Ljubljana, Slovenia 
(tel: +386-1-477-3523 // fax:+386-1-477-3822)

Please, if possible, avoid sending me Word or PowerPoint attachments.
See:  http://www.gnu.org/philosophy/no-word-attachments.html



More information about the XCrySDen mailing list