<div dir="ltr">I think yt 2.6.1 wasn't able to create a subdirectory if it didn't already exist. Does the 'plots' directory exist?</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 18, 2016 at 11:31 PM, Yuxiao Dai <span dir="ltr"><<a href="mailto:yuxiao.dai@nyu.edu" target="_blank">yuxiao.dai@nyu.edu</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 class="gmail_default">







<p style="font-family:georgia,serif">Hi all, </p><p style="font-family:georgia,serif"><br></p><p style="font-family:georgia,serif">I tried to get some plots using a python code but got this error message.</p><p style="font-family:georgia,serif">=======================<br></p><p style="font-family:georgia,serif">Traceback (most recent call last):</p>
<p style="font-family:georgia,serif">  File "ytplots_BMag_plot_dai.py", line 58, in <module></p>
<p style="font-family:georgia,serif">    <b>pcb.save('plots/Bullet_BMag_'+str(i))</b></p>
<p style="font-family:georgia,serif">  File "/home/yd742/software/withpysci/yt-x86_64/src/yt-hg/yt/visualization/plot_collection.py", line 173, in save</p>
<p style="font-family:georgia,serif">    override=override, force_save=force_save))</p>
<p style="font-family:georgia,serif">  File "/home/yd742/software/withpysci/yt-x86_64/src/yt-hg/yt/visualization/plot_types.py", line 112, in save_image</p>
<p style="font-family:georgia,serif">    only_on_root(canvas.print_figure, fn)</p>
<p style="font-family:georgia,serif">  File "/home/yd742/software/withpysci/yt-x86_64/src/yt-hg/yt/funcs.py", line 368, in only_on_root</p>
<p style="font-family:georgia,serif">    return func(*args,**kwargs)</p>
<p style="font-family:georgia,serif">  File "/home/yd742/software/withpysci/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/backend_bases.py", line 2220, in print_figure</p>
<p style="font-family:georgia,serif">    **kwargs)</p>
<p style="font-family:georgia,serif">  File "/home/yd742/software/withpysci/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.3.0-py2.7-linux-x86_64.egg/matplotlib/backends/backend_agg.py", line 510, in print_png</p>
<p style="font-family:georgia,serif">    filename_or_obj = open(filename_or_obj, 'wb')</p>
<p style="font-family:georgia,serif">IOError: [Errno 2] No such file or directory: 'plots/Bullet_BMag_0_Profile1D_0_RadiusMpc_BMag.png'</p><p style="font-family:georgia,serif">=======================</p><p style="font-family:georgia,serif">I'm using yt</p><p style="font-family:georgia,serif">Version = 2.6.1</p><p style="font-family:georgia,serif">








</p><p style="font-family:georgia,serif">Changeset = c994959ed3be</p><p style="font-family:georgia,serif">=======================<br></p><p><font face="georgia, serif">I would very much appreciate it if anyone could help me on this. </font></p><p><font face="georgia, serif"><br></font></p><p><font face="georgia, serif">Thank you very much. </font></p><p><font face="georgia, serif"><br></font></p><p><font face="georgia, serif">Regards, </font></p><span class="HOEnZb"><font color="#888888"><p><font face="georgia, serif">Yuxiao </font></p></font></span></div></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>