#-----------------------------------------------------------------------------------
from yt.mods import *
i=2
file = "RD%04i" % i
fn = file+"/"+file
pf=load(fn)
dd=pf.h.all_data()
fieldx='Density'
fieldy='Temperature'
fieldc='CellVolumeCode'
#fieldc='CellVolume'
#fieldc='CellMassMsun'
#fieldc='CellMass'
#fieldc='Ones'
pplot = PhasePlot(dd, fieldx, fieldy, [fieldc],weight_field=None)
pplot.save('example/'+file)
#---------------------------------------------------------------------------------------