<div dir="ltr">Thank you very much, Britton. But I am facing a problem. We were using YT 2.6. <div>For getting the above facility, I am converting my code to YT 3.3 dev compatible. Unfortunately, I am unable to find a field, which is equivalent to the <font size="4" face="monospace, monospace"><b>'CellMass' </b></font>of  YT 2.6.  How to get the Baryonic mass information of a Cell?</div><div><br></div><div>Thankyou. </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Apr 22, 2016 at 4:20 PM, Britton Smith <span dir="ltr"><<a href="mailto:brittonsmith@gmail.com" target="_blank">brittonsmith@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Reju,<div><br></div><div>If you are on the development version of yt, the plot object will have a function associated with it called save_as_dataset.  This will write out a file with the plot data and this file can be reloaded with yt.load.  Have a look here for a full description of how to use it.</div><div><a href="http://yt-project.org/docs/dev/analyzing/saving_data.html#spatial-plots" target="_blank">http://yt-project.org/docs/dev/analyzing/saving_data.html#spatial-plots</a><br></div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Fri, Apr 22, 2016 at 8:57 AM, Reju Sam John <span dir="ltr"><<a href="mailto:rejusamjohn@gmail.com" target="_blank">rejusamjohn@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">Hi, </font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">I would like to know, how to write the plotted values of a 'ProfilePlot()' to a file? For example, I made a <span style="color:rgb(0,0,0);line-height:22.4px;text-align:justify"> histogram </span>with the following line.</font></div><div><font face="monospace, monospace" size="4"> plot = ProfilePlot(sphere_200, "ProtonMomentum", ["NoOfProton"], weight_field="CellMass")</font></div><div><br></div><div>But how can I write the values of "ProtonMomentum" and "NoOfProton" to a file?<br></div><div><br></div><div>Thankyou.</div><span><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Reju Sam John</div></div>
</font></span></div>
<br></div></div>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Reju Sam John</div></div>
</div>