<html><body>
<p>1 new commit in yt:</p>
<p><a href="https://bitbucket.org/yt_analysis/yt/commits/f027ae00224c/">https://bitbucket.org/yt_analysis/yt/commits/f027ae00224c/</a> Changeset:   f027ae00224c Branch:      yt User:        MatthewTurk Date:        2016-03-30 21:51:17+00:00 Summary:     Merged in Jmt354/yt (pull request #2072)</p>
<p>Edited PhasePlot class to have an annotate_title method. Closes #931 Affected #:  2 files</p>
<p>diff -r ac130eab01032636d00b9de431b8e5f1b4b788d6 -r f027ae00224c357e0cf4b49c3ff1afdd9d69bbaa doc/source/analyzing/mesh_filter.ipynb --- a/doc/source/analyzing/mesh_filter.ipynb +++ b/doc/source/analyzing/mesh_filter.ipynb @@ -143,13 +143,13 @@</p>
<pre>"source": [
 "ph1 = yt.PhasePlot(ad, 'density', 'temperature', 'cell_mass', weight_field=None)\n",
 "ph1.set_xlim(3e-31, 3e-27)\n",</pre>
<ul><li><p>“ph1.set_title('cell_mass', 'No Cuts')\n”,</p></li></ul>
<p>+    “ph1.annotate_title('No Cuts')\n”,</p>
<pre>"ph1.set_figure_size(5)\n",
"ph1.show()\n",
"\n",
"ph1 = yt.PhasePlot(dense_ad, 'density', 'temperature', 'cell_mass', weight_field=None)\n",
"ph1.set_xlim(3e-31, 3e-27)\n",</pre>
<ul><li><p>“ph1.set_title('cell_mass', 'Dense Gas')\n”,</p></li></ul>
<p>+    “ph1.annotate_title('Dense Gas')\n”,</p>
<pre> "ph1.set_figure_size(5)\n",
 "ph1.show()"
]</pre>
<p>diff -r ac130eab01032636d00b9de431b8e5f1b4b788d6 -r f027ae00224c357e0cf4b49c3ff1afdd9d69bbaa yt/visualization/profile_plotter.py --- a/yt/visualization/profile_plotter.py +++ b/yt/visualization/profile_plotter.py @@ -697,7 +697,7 @@</p>
<pre>>>> # Change plot properties.
>>> plot.set_cmap("cell_mass", "jet")
>>> plot.set_zlim("cell_mass", 1e8, 1e13)</pre>
<ul><li><blockquote><blockquote><blockquote><p>plot.set_title("cell_mass", “This is a phase plot”)</p></blockquote></blockquote></blockquote></li></ul>
<p>+    >>> plot.annotate_title("This is a phase plot")</p>
<pre>"""
x_log = None</pre>
<p>@@ -1061,6 +1061,27 @@</p>
<pre>        return self

    @invalidate_plot</pre>
<p>+    def annotate_title(self, title): +        """Set a title for the plot. + +        Parameters +        ---------- +        title : str +            The title to add. + +        Examples +        -------- + +        >>> plot.annotate_title("This is a phase plot") + +        """ +        for f in self.profile.field_data: +            if isinstance(f, tuple): +                f = f[1] +            self.plot_title[self.data_source._determine_fields(f)[0]] = title +        return self + +    @invalidate_plot</p>
<pre>def reset_plot(self):
    self.plots = {}
    return self</pre>
<p>Repository URL: <a href="https://bitbucket.org/yt_analysis/yt/">https://bitbucket.org/yt_analysis/yt/</a></p>
<p>—</p>
<p>This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.</p>

<img src="http://link.bitbucket.org/wf/open?upn=ll4ctv0L-2ByeRZFC1LslHcg6aJmnQ70VruLbmeLQr27Bl2DXuCdNxYZtNZ7Sz9RzuMmoaGIXymzArbIK-2BMHVgT1i0cRARAv9aR2RsdkCaoBH7-2FqKIxjpcn-2F61qKZY01U6M0seWFhVbyrMYmEprwAsfga9xB9SeICdYcLWuZ83SYtuKJaZZJ-2BrAXcqJMrc6UjpWdv-2FT1fHObuMKLxNV1INfN7pnqDndtUtHIYyqDrnGNU-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>