Hi Michael,
Is there an sdds tool to plot the lattice layout? I wrote a preliminary script in python(attached), but it would be nice to have one compatible with sdds.
To run the attached script, python must be installed as well as the required packages.
It takes input from two files: fr.flr and fr.par. Type the following command from a terminal:
plring -f fr -p 1
It will plot and save the figure in an eps file.
Cheers,
Weiming
Plot the lattce layout
Moderators: cyao, michael_borland
Plot the lattce layout
- Attachments
-
- plring.txt
- (4.49 KiB) Downloaded 552 times
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Plot the lattce layout
Weiming,
There's a script called view3dGeometry contributed by Alexey Petrenko and distributed with elegant. It uses the freewrl program to make a 3d rendering.
I'll try out your script. There's an SDDS package for python on our web site that would allow it to read the SDDS files directly.
--Michael
There's a script called view3dGeometry contributed by Alexey Petrenko and distributed with elegant. It uses the freewrl program to make a 3d rendering.
I'll try out your script. There's an SDDS package for python on our web site that would allow it to read the SDDS files directly.
--Michael
-
- Posts: 1951
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Plot the lattce layout
Weiming,
I tried your script, but there's an issue with the turtle module not being found. According to our IT group, there are numerous packages with "turtle" in the name.
Any idea which one we should use?
--Michael
I tried your script, but there's an issue with the turtle module not being found. According to our IT group, there are numerous packages with "turtle" in the name.
Code: Select all
turtle (0.0.2) - Turtle is an HTTP proxy whose purpose is to throttle connections to
an turtle implementation for the pygame module.
tinysvg (0.0.3) - tinysvg is a thin implementation of svg within python along with simple turtle graphics. Not production stable.
turtlepower (0.1) - A tool for advanced use of the turtle module
PyArtist (0.5.1) - A Python library for Python-learners to draw pictures by "turtle"
spiro (0.1.2) - Module to draw spirographs with turtle graphics
ttlser (1.0.0) - Deterministic turtle serialization for rdflib.
frog (2.2.1) - Improved and extended turtle graphics like module
turtlepaint (0.0.1) - Program for drawing things with turtle.
turtle100 (1.0.0) - 100 turtle shape
turgles (0.1) - An OpenGL ES renderer for LOGO style turtles.
turtleplus (0.1) - An upgraded version of the 'turtle'
PhysicalTurtle (0.4) - Physical characteristics for turtle graphics
turtle2.py (1.0.0) - An alternative to Python's standard turtle package with some extra functions.
cturtle (0.0.6) - A ctypes interface to the TURTLE library
subturtle (1.0.2.post1) - A fast turtle that downloads subtitles
pyontutils (0.1.0) - utilities for working with the NIF ontology, SciGraph, and turtle
ninjaturtle (0.1) - A re-implementation of python stdlib's turtle module
nxturtle (1.0.3) - Implementation of a Python turtle for LEGO Mindstorms NXT
numpy-turtle (0.1) - Turtle graphics with NumPy
turtles (1.0.0) - endlessly frobbable turtles
turtleart (0.2) - Library to facilitate Turtle Art
ipyturtle (0.2.0) - Creating Turtle Geometry in IPython (Jupyter Widget)
turtle3D (0.1) - A pakage to draw 3D models with the python turtle
mockturtle (0.1.6) - mockturtle is the command-line interface to the Turtle Services private network, https://turtle.services/
qturtle (0.5.0) - Python turtle graphics in Qt.
--Michael
Re: Plot the lattce layout
Michael,
It is the Turtle graphics package, so the
numpy-turtle (0.1) - Turtle graphics with NumPy
should work.
I had to run the following two commands to get the packages:
sudo apt-get install python-tk
and
sudo apt-get install python3-tk
Turtle should come with tkinter.
By the way, plring is a small program so it is easier to use than view3dGeometry.
Weiming
It is the Turtle graphics package, so the
numpy-turtle (0.1) - Turtle graphics with NumPy
should work.
I had to run the following two commands to get the packages:
sudo apt-get install python-tk
and
sudo apt-get install python3-tk
Turtle should come with tkinter.
By the way, plring is a small program so it is easier to use than view3dGeometry.
Weiming