Keitaro,

The Python script we used to make Fig. 1 is contained within the
Labelit source code distributed with Phenix, in the file

labelit/publications/sublattice/sublattice_Fig1.py

The PDF-generating code was never made into a finished product; at
present the most important missing element is that the hkl indices are
reported in the primitive setting, not the final setting if your
lattice is other than primitive.  Given a couple of weeks I can
implement this.  In the meantime, the existing code can label spots in
the primitive setting and produce publication-quality PDF files.
Example usage is:

labelit.index <image file name> \
   sublattice_pdf_file=./Fig1.pdf \
   sublattice_pdf_render_all=False \
   sublattice_pdf_window_fraction=0.18 \  #Plot edge is 18% of the entire image
   sublattice_pdf_window_offset_x=0.532 \ #Plot center, as a fraction
of the entire image
   sublattice_pdf_window_offset_y=0.5 \
   sublattice_pdf_box_linewidth=0.8 \
   sublattice_pdf_enable_legend=True \
   sublattice_pdf_enable_legend_font_size=9 \
   sublattice_pdf_enable_legend_ink_color=black \
   sublattice_pdf_enable_legend_vertical_offset=9.5 \
   image_brightness=0.7


Regards,
Nick Sauter
On Tue, Dec 7, 2010 at 9:31 PM, Keitaro Yamashita
<yamash...@castor.sci.hokudai.ac.jp> wrote:
> Dear all,
>
> I would like to make a picture of diffraction photograph with (hkl) indexes.
>
> I found it in Fig. 1 in the paper: Acta Cryst. (2009). D65, 553-559
> http://dx.doi.org/10.1107/S0907444909010725
> Direct link to the figure:
> http://journals.iucr.org/d/issues/2009/06/00/dz5158/dz5158fig1.html
>
> Can LABELIT, Mosflm or other program make image file (jpg or
> something) such like that?
>
> Thank you very much in advance,
>
> K. Yamashita
>

Reply via email to