Reading:A script to plot GWL File (for the use of Nanoscribe)

A script to plot GWL File (for the use of Nanoscribe)

describe - nanoscribe language GWLThe focus of this article is really small. It will only interest people involved in Research, who own a Nanoscribe device.

I was a little bit annoyed by the software, very heavy, and running only on windows. I wanted to design my structures on Linux (or any plateform actually), and I wanted to plot the result with a light software.

I programmed a small script in Python to plot 2D structures written in gwl. In order to run it, ou need to have Python 2.6, Matplotlib and SciPy (in order to have Numpy functions). You also have to use the preamble module I use and which is also included in the archive.

To use it, put the module, the script and the GWL file in the same folder. Then modify the script and include the name of your gwl file. Finally, open a consol, and type :

python plot_gwl.py

You can modify and improve this small script, and I would be happy to see the modifications (probably 3D would be a good step forward).

Download the archive : Plot_GWL.1.0.zip (contains the script to plot and the module)

 

Edit 22 Nov. 2010 : I implemented the 3D visualization . The same command is required to use it (modify line 26  “open(‘your_filename.gwl’,’r’)” ) . Comments have been added to help you understading the script. A future addition will take in account an input parameter (instead of modifing the script every time to tell it which file to plot).

Download the new archive : Plot_GWL.1.1.zip

Example of a 3D plot :

Tour Eiffel with Nanoscribe