< Browse > Home / Python, Sciences / Blog article: A script to plot GWL File (for the use of Nanoscribe)

| Mobile | RSS

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

November 17th, 2010 | 1 Comment | Posted in Python, Sciences

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

Be Sociable, Share!
Leave a Reply 7345 views, 5 so far today |

Related Posts

Follow Discussion

One Response to “A script to plot GWL File (for the use of Nanoscribe)”

  1. Vijay Parsi Says:

    Hallo!
    This is a wonderful code to view the .gwl files. But, I would like to know if the python graphics engine is actually that slow? When I use a file of 10 MB or more, the rendering takes more than 5-7 mins and is staggered! I have 4 GB RAM and 4GB swap.

Leave a Reply

CommentLuv badge

Additional comments powered by BackType


CarroCarro - Mars 2011Street ArtFirenze - Ponte VecchioBergerieBergerie2Citadelle de CalviParc enfantManègeÔ la vache!