<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello Everybody, <br>
first I want to thank for every time I got an answer when I
write here, I really appreciate it. <br>
Now I am writing because I am using PlotCollection (As you can see
my code) and I have some questions<br>
<br>
1) the plot is coming in cm^3 and I want to change it to kpc^3 is
there a way to change it?<br>
2) I am attaching the plot can I change to dot or any different
symbol and color?<br>
3) why some plot come "empty"? and also I get this error message<br>
<i>Data has no positive values, and therefore can not be
log-scaled.</i><br>
<br>
-----<br>
sphere = pf.h.sphere(c, (250., 'kpc')) # 250.<br>
levels = 8 #8<br>
mi, ma = sphere.quantities["Extrema"]("Density")[0]<br>
contour_values, connected_sets =
sphere.extract_connected_sets("Density", levels, mi, ma)<br>
for i in connected_sets:<br>
eb = connected_sets[i] <br>
print "level " + str(i) + " clmsp# " + str(len(eb))<br>
for j in eb:<br>
obj = eb[j] <br>
com = obj.quantities["CenterOfMass"]()<br>
print com<br>
pc = PlotCollection(pf, com)<br>
pc.add_profile_object(obj, ["Density",
"Temperature"],weight="CellMassMsun") # average T(rho)<br>
pc.add_profile_object(obj, ["Density", "CellVolume"],
weight=None) #<br>
pc.add_profile_object(obj, ["Density", "CellMassMsun"],
weight=None) #<br>
try:<br>
pc.save("sliceplot_300_"+str(i)+"_" +str(j))<br>
except Exception, e:<br>
print e<br>
continue<br>
<br>
-----<br>
<br>
Thank you in advance!!<br>
</body>
</html>