<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hey there,<br>
      <br>
      I don't think it is directly in there, but I am not too sure about
      this.<br>
      You could just use matplotlib.<br>
      Basically you could do something like this:<br>
      <pre>import matplotlib.pyplot as plt
<span class="n">plt</span><span class="o">.</span><span class="n">plot</span><span class="p">([</span><span class="mi">1</span><span class="p">,</span><span class="mi">2</span><span class="p">,</span><span class="mi">3</span><span class="p">,</span><span class="mi">4</span><span class="p">],</span> <span class="p">[</span><span class="mi">1</span><span class="p">,</span><span class="mi">4</span><span class="p">,</span><span class="mi">9</span><span class="p">,</span><span class="mi">16</span><span class="p">])
plt.show()
</span><span class="p"></span>
</pre>
      <span class="p">Pylab would be possible as well, maybe even
        better, as it also gives you the math namespace.<br>
        Hope that helps</span>.<br>
      <span class="p"></span><br>
      All the best<br>
      Hannes<br>
      <br>
      <br>
      PS: For actually opening a file you might want to try:<br>
      <br>
      <pre><tt class="descclassname">plt.</tt><tt class="descname">plotfile</tt><big>(</big><em>fname</em>, <em>cols=(0</em>, <em>)</em>, <em>plotfuncs=None</em>, <em>comments='#'</em>, <em>skiprows=0</em>, <em>checkrows=5</em>, <em>delimiter='</em>, <em>'</em>, <em>names=None</em>, <em>subplots=True</em>, <em>newfig=True</em>, <em>**kwargs</em><big>)</big></pre>
      <pre>
plt.plotfile(fname, (0,1,2), subplots=False)</pre>
      <br>
      Which would plot the second and third column of the file 'fname'
      against the first one.<br>
      <br>
      <br>
      <br>
      On 07/02/2012 09:50 AM, Amol Holkundkar wrote:<br>
    </div>
    <blockquote cite="mid:1341215430.20519.1.camel@plasma" type="cite">
      <pre wrap="">Dear All,

How we can use yt to plot ASCII files like gnuplot. Any simple example
will be really appreciated.

Thanks,

Regards
Amol  

_______________________________________________
yt-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a>
<a class="moz-txt-link-freetext" href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a>
</pre>
    </blockquote>
    <br>
    <br>
  </body>
</html>