<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">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">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><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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 class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div><div dir="ltr">Reju Sam John</div></div>
</font></span></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></div>