Page 1 of 1
Color density plots?
Posted: 22 Mar 2012, 12:37
by astecpete
Hi Michael,
I've seen a few people showing sddsplot produced plots using color density to illustrate phase space distributions. Do I need to use sddscontour to make those or have I missed a feature in sddsplot?
Thanks
Peter
Re: Color density plots?
Posted: 29 Mar 2012, 11:09
by michael_borland
Peter,
This is typically done with sddshist2d followed by sddscontour. E.g.,
sddshist2d phaseSpace.sdds phaseSpace.h2d -column=x,xp -xparam=100 -yparam=100
sddscontour phaseSpace.h2d -shade=100
You can use sddsplot for a similar effect, but only if you want to plot the points color-coded by a third phase space quantity, e.g.,
sddsplot -column=x,xp phaseSpace.sdds -split=column=t -graph=dot,vary -order=spect
will plot (x, x') color code by t.
--Michael
Re: Color density plots?
Posted: 12 Jul 2012, 04:20
by dpe
I'have been playing a little bit with this but I do not like so much the final result.
Using shell distributions I have been able to produce some nice contour plots of the phase space of the bunch. Now I'd like to move my distribution parameters in order to get a contour for sigma, 2sigma, 3sigma... can this be done in a way similar to the one provided by the command vary_element, placing the distributions in different pages of the same SDDS file? Doing it manually would be quite tedious.
Tanks
Re: Color density plots?
Posted: 16 Jul 2012, 02:53
by dpe
Here is an example of what I would like to obtain:

Where different colours contain different percentages of the beam.
Using shell distribution I have been able to obtain just one of that contours, is there an easy and direct way to obtain many of them as in the example?
Thank you for your assistance.