Page 1 of 1

sddshist2d for energy

Posted: 13 Nov 2018, 11:36
by Jafarinia
Hi,

I want to make a contour plot of x and xp from the out file but instead of frequency parameter, I want to plot the data in terms of p (momentum). That would be like density plot but instead of the number of particles for each grid I want to know the energy of these particles.

Thank you in advance,
Farzad

Re: sddshist2d for energy

Posted: 26 Nov 2018, 15:51
by michael_borland
Farzad,

If (x, xp) form a grid, then you can use

Code: Select all

sddscontour -shade -xyz=x,xp,p <filename>
This will make a 2d plot of p vs (x, xp).

If (x, xp) don't form a grid, then you can try

Code: Select all

sddsplot -column=x,xp -split=column=p -graph=dot,vary -order=spect
This will plot the (x, xp) values as a scatter plot with the dots color-coded according to the value of p.

--Michael