sddshist2d for energy

Moderators: cyao, michael_borland

Post Reply
Jafarinia
Posts: 23
Joined: 02 Nov 2017, 12:25

sddshist2d for energy

Post by Jafarinia » 13 Nov 2018, 11:36

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

michael_borland
Posts: 1927
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: sddshist2d for energy

Post by michael_borland » 26 Nov 2018, 15:51

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

Post Reply