How To Plot XRD Reciprocal Space Maps
Stand-alone CSV to Veusz 2D Matrix Converter
I wrote a stand-alone python script to convert the reciprocal space map CSV file into a 2D matrix file that Veusz can import. Follow these steps to get it working:
Install the Enthought Python Distribution
Download the [ ], and save it somewhere safe and accessible. Then, run the script (in windows, just double click on it). It will popup a file dialog for you to select the CSV file you want to convert. Once the script is done running, it will output two files, "matrix.txt" and "matrix_ranges.txt" into the same directory as the script.
Install Veusz (http://home.gna.org/veusz/downloads/)
In Veusz, go to Data >> Import...
At the top of the Import Data dialog, next to the "Filename:" textbox, hit the "Browse" button to bring up a file dialog. Select the "matrix.txt" file, and hit Open.
Below the "Filename:" textbox, click on the "2D" tab, to select a 2D import.
Give the dataset a name, such as "rsm" (without the quotes).
For the ranges, copy the values from the matrix_ranges.txt file.
Hit import.
Now, you can add a contour plot or image plot to the graph, and select the "rsm" dataset. A sample veusz save file can be downloaded . Just import your "matrix.txt" file into it with the name dataset name "rsm". Note that the contour plot is hidden by default, because it slows things down quite a bit, but the image plot should appear.
Veusz Plugin
I wrote an RSM import plugin for Veusz (the plotting software that I use), but we've had trouble getting it to work for everyone. It works fine on my OSX system, but not on Rodolfo's Windows 7 system. It's probably easier to use the stand-alone file converter, but if you want to give the plugin a try, then follow these steps:
Install the Enthought Python Distribution
Install Veusz (http://home.gna.org/veusz/downloads/)
Download the to somewhere safe
Start Veusz, go to Preferences->Plugin->Add..., and select the plugin you downloaded in the last step.
Restart Veusz.
RSM's can then be imported the same way as any other data by going to the plugins tab and select 'RSM import' in the drop down menu in the import data dialogue. Be sure you have used the XRD data viewer to convert to .csv!
-Scott