Page 1 of 1

plotting 2-D while scanning 1 variable

Posted: 26 May 2015, 23:12
by jtobin
Michael and elegant users,
So if I scan a single variable (RF phase) and want to look at the bunch centroid say then I do

Code: Select all

sddsplot -graph=symbol,scale=2 -parameter=CAV.PHASE,Cx run.fin 


but how do I

1. plot longitudinal phase space (2-D) as a function of a single scanned variable (RF phase) with colors as legend for the scanned phases. My scans are generally limited to 5 or 6 values.

and/or

2. plot 1-D projections say the energy profile as a function of RF phase.

This would be terrific in understanding and visualizing results. I am assuming about 10K particles. Thanks!

Charles

ps: Are the results stored in pages? If so, how I can use it?

Re: plotting 2-D while scanning 1 variable

Posted: 27 May 2015, 12:33
by michael_borland
Charles,

Attached you will find an example run that shows how to do both of these things.

The data from each step does go into another page, which helps to keep things organized.

--Michael

Re: plotting 2-D while scanning 1 variable

Posted: 28 May 2015, 13:00
by jtobin
Michael,
Thank you very much. This was what I was looking for. But a minor hiccup, it (sddshist actually) keeps reporting invalid lowerlimit. Separately running the sddscombine does print out a valid value. I don't know what is the problem. Any ideas? May be the cygwin environment is not suited.
But I can live with this. Right now I just set the lower limit manually.

-Charles

Re: plotting 2-D while scanning 1 variable

Posted: 28 May 2015, 14:48
by michael_borland
Charles,

Yes, that is certainly a cygwin limitation. Another option on Windows machines is to run linux in a virtual machine.

--Michael