[yt-users] Plot title for PhasePlot

Rick Sarmento rsarment at asu.edu
Tue Oct 28 14:39:08 PDT 2014


Hello all,

I’m trying to generate some plot titles on my phase diagrams (RAMSES data)… But neither of the approaches works:

# fractional=True keyword -- divide the profile data by the sum. 
ds = yt.load("/Users/earnric/RAMSES-Data/cooling/output_00012/info_00012.txt")
ad = ds.all_data()
plot = yt.PhasePlot(ad, "density", "temperature", "cell_mass", weight_field=None, fractional=True )
zStr = "Gas phase z = %.1f" % ds.current_redshift
plot.set_zlim('cell_mass', 1e-9, 1e-1)
plot.set_title("cell_mass", zStr)  	## Approach 1
plot.plot_title=zStr 			## Approach 2
plot.show()

I can’t figure out (from the documentation) which is supposed to work! Both are listed here:

http://yt-project.org/docs/3.0/reference/api/generated/yt.visualization.profile_plotter.PhasePlot.html?highlight=phaseplot <http://yt-project.org/docs/3.0/reference/api/generated/yt.visualization.profile_plotter.PhasePlot.html?highlight=phaseplot>

Thx for the help...


Cheers!

Rick Sarmento
SESE Astronomy/Astrophysics Grad Student
rsarment at asu.edu







-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20141028/03cac12d/attachment.htm>


More information about the yt-users mailing list