Differences

This shows you the differences between two versions of the page.

Link to this comparison view

out_gnuplot [2009/11/18 17:03] (current)
dch3sl created
Line 1: Line 1:
 +====== Out_Gnuplot_ ======
  
 +Description:​ produce hkl labels and plots to use in gnuplot
 +
 +Comment: lets you manipulate plots quickly using gnuplot command line functionality
 +
 +Contributed by: John Evans
 +
 +<code topas>​macro Out_gnuplot_labels(file)
 +{
 +    out file
 +      Out_String("#​ put quotation marks round hkl labels; change yoffset value to move labels\n"​)
 +      Out_String("​set nolabel\n"​)
 +      Out_String("​yoffset=1\n"​)
 +   ​phase_out file append load out_record out_fmt out_eqn
 +   {
 +     "​set label  %3.0f" = H; " %3.0f" =K; " %3.0f" = L;
 +   " at %11.5f"​ = 2 57.2957795130823 Th;
 +      ", %11.5f * yoffset \n" = I_after_scale_pks;​
 +   }
 +}
 +</​code>​
 +
 +<code topas>​macro Out_gnuplot_tics(file)
 +{
 +   ​phase_out file append load out_record out_fmt out_eqn
 +   {
 +     "​ %11.5f" ​  = 2 57.2957795130823 Th;
 +      " %11.5f\n"​ = I_after_scale_pks;​
 +   }
 +} </​code>​

Personal Tools