<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello all,<div class=""><br class=""></div><div class="">I’m trying to generate some plot titles on my phase diagrams (RAMSES data)… But neither of the approaches works:</div><div class=""><br class=""></div><blockquote style="margin: 0 0 0 40px; border: none; padding: 0px;" class=""><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class=""># fractional=True keyword -- divide the profile data by the sum. </span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">ds = yt.load("/Users/earnric/RAMSES-Data/cooling/output_00012/info_00012.txt")</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">ad = ds.all_data()</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">plot = yt.PhasePlot(ad, "density", "temperature", "cell_mass", weight_field=None, fractional=True )</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">zStr = "Gas phase z = %.1f" % ds.current_redshift</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">plot.set_zlim('cell_mass', 1e-9, 1e-1)</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">plot.set_title("cell_mass", zStr)  <span class="Apple-tab-span" style="white-space:pre">    </span>## Approach 1</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">plot.plot_title=zStr <span class="Apple-tab-span" style="white-space:pre">                      </span>## Approach 2</span></font></div></div><div class=""><div class=""><font face="Courier New" class=""><span style="font-size: 12px;" class="">plot.show()</span></font></div></div></blockquote><div class=""><br class=""></div><div class="">I can’t figure out (from the documentation) which is supposed to work! Both are listed here:</div><div class=""><br class=""></div><div class=""><a href="http://yt-project.org/docs/3.0/reference/api/generated/yt.visualization.profile_plotter.PhasePlot.html?highlight=phaseplot" class="">http://yt-project.org/docs/3.0/reference/api/generated/yt.visualization.profile_plotter.PhasePlot.html?highlight=phaseplot</a></div><div class=""><br class=""></div><div class="">Thx for the help...</div><br class=""><br class=""><div apple-content-edited="true" class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><i class=""><font size="3" class="">Cheers!</font></i></div><div class=""><i class=""><font size="3" class=""><br class=""></font></i></div><div class=""><i class=""><font size="3" class="">Rick Sarmento</font></i></div><div style="color: rgb(0, 0, 0); font-size: 13px;" class="">SESE Astronomy/Astrophysics Grad Student</div><div style="color: rgb(0, 0, 0); font-size: 13px;" class=""><a href="mailto:rsarment@asu.edu" class="">rsarment@asu.edu</a></div><div style="color: rgb(0, 0, 0);" class=""><br class=""></div></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"></div><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>