Page 1 of 1

new sddsplot options (for 2D lattice layout)

Posted: 15 Dec 2008, 04:43
by petrenko
Hi!

I figured out how to plot quite a nice picture of accelerator layout using floor_coordinates command in Elegant.
I hope somebody will also find this simple script useful.

In this connection I would like to suggest a number of new features for sddsplot:

1) Make it possible to keep the same aspect ratio for the picture if sddsplot-window is resized (simply add more horizontal or vertical blank space around the picture). Or even make this the default when -aspectRatio option is used.
2) Use the -string option to create a link that executes a command if clicked. I actually want to use such links instead of the text labels in order to access the element properties operating the real machine (to set the currents, see the BPM signals etc.) Maybe it's already implemented as "edit=<edit-command>" option but I just don't know what this option means. Could you explain it please? This option does not seem to produce any effect both in Linux and in Windows.
3) Add a Google Maps-like scroll to sddsplot when zoom is used.
4) Add -pipe=in option for sddsplot and something like -remove_Input_File_On_Exit option to plot temporary files.

Also please consider implementing -repeat[=checkSeconds=number] option as well as the "Improved Zoom" feature in Windows.

Thanks in advance!

Alexey.

Re: new sddsplot options (for 2D lattice layout)

Posted: 15 Dec 2008, 10:36
by michael_borland
Alexey,

Thanks for posting this. I'm very impressed by how nice the plot is.

We'll certainly consider your suggestions (though some might not be so easy).

The edit=<command> feature on the -string option is meant to be used with the -string=@<parameterName> syntax. The idea is that if the string is taken from a parameter in the SDDS file (instead of being given explicitly on the commandline), then the user may want to automatically edit the string.

--Michael

Re: new sddsplot options (for 2D lattice layout)

Posted: 16 Dec 2008, 00:07
by petrenko
Thank you, Michael! I see the point now. This is the SDDS-edit, not the interactive edit as I expected.
Still, links + tcl-dialogs may add some interactivity into the sddsplot.