<div dir="ltr">Hi Stephanie,<div><br></div><div>The quick fix is to update your matplotlib installation:</div><div><br></div><div>$ pip install -U matplotlib</div><div><br></div><div>There's an open pull request that fixes your issue, it should be merged soon:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/pull-requests/2234/fix-compatibility-with-matplotlib-143-and/diff">https://bitbucket.org/yt_analysis/yt/pull-requests/2234/fix-compatibility-with-matplotlib-143-and/diff</a><br></div><div><br></div><div>-Nathan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 24, 2016 at 2:39 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@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><div><div><div><div>Hi yt-users,<br><br></div>I just updated my yt dev and suddenly my plotting scripts don't work.  When I actually try and save my plot, I am told that I don't have "classic" style available.  I am not sure where this problem is coming from, does anyone have some advice for me?<br><br></div>The code commands:<br><br>ds = yt.load("/data001/stonnes/MWtype_BPtest/DD"+loop[i]+"/DDMWtestf"+loop[i])<br>ds.add_field(('gas','tracer'),function=tfrac)<br>logs = {('index','cylindrical_r'):False}<br>logs = {('gas','velocity_z'):False}<br>logs = {('gas','velocity_x'):False}<br>logs = {('gas','velocity_y'):False}<br>logs = {('gas','tracer'):False}<br><br>ds.index<br>ds.field_info['gas','velocity_z'].take_log = False<br>ds.field_info['gas','velocity_x'].take_log = False<br>    <br>plot6p = yt.ProjectionPlot(ds,"z","density")<br>plot6p.save()<br>    <br></div>The error message:<br><br>yt : [INFO     ] 2016-06-24 12:25:04,736 Parameters: current_time              = 0<br>yt : [INFO     ] 2016-06-24 12:25:04,736 Parameters: domain_dimensions         = [256 256 256]<br>yt : [INFO     ] 2016-06-24 12:25:04,736 Parameters: domain_left_edge          = [ 0.  0.  0.]<br>yt : [INFO     ] 2016-06-24 12:25:04,737 Parameters: domain_right_edge         = [ 1.  1.  1.]<br>yt : [INFO     ] 2016-06-24 12:25:04,737 Parameters: cosmological_simulation   = 0.0<br><br>Parsing Hierarchy :   0%|          | 0/2503 [00:00<?, ?it/s]<br>Parsing Hierarchy : 100%|##########| 2503/2503 [00:00<00:00, 33786.39it/s]<br>yt : [INFO     ] 2016-06-24 12:25:04,952 Gathering a field list (this may take a moment.)<br>yt : [INFO     ] 2016-06-24 12:25:50,114 Projection completed<br>yt : [INFO     ] 2016-06-24 12:25:50,328 xlim = 0.000000 1.000000<br>yt : [INFO     ] 2016-06-24 12:25:50,328 ylim = 0.000000 1.000000<br>yt : [INFO     ] 2016-06-24 12:25:50,329 xlim = 0.000000 1.000000<br>yt : [INFO     ] 2016-06-24 12:25:50,329 ylim = 0.000000 1.000000<br>yt : [INFO     ] 2016-06-24 12:25:50,336 Making a fixed resolution buffer of (('gas', 'density')) 800 by 800<br>yt : [INFO     ] 2016-06-24 12:25:51,408 Saving plot DDMWtestf0000_Projection_z_density.png<br>Traceback (most recent call last):<br>  File "yt_slicesonly_allouts.py", line 29, in <module><br>    plot6p.save()<br>  File "/home/stonnes/yt-x86_64/src/yt-hg/yt/visualization/plot_container.py", line 79, in newfunc<br>    rv = f(*args, **kwargs)<br>  File "/home/stonnes/yt-x86_64/src/yt-hg/yt/visualization/plot_container.py", line 575, in save<br>    names.append(v.save(n, mpl_kwargs))<br>  File "/home/stonnes/yt-x86_64/src/yt-hg/yt/visualization/base_plot_types.py", line 104, in save<br>    with matplotlib_style_context():<br>  File "/home/stonnes/yt-x86_64/lib/python2.7/contextlib.py", line 17, in __enter__<br>    return self.gen.next()<br>  File "/home/stonnes/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/style/core.py", line 86, in context<br>    use(name)<br>  File "/home/stonnes/yt-x86_64/lib/python2.7/site-packages/matplotlib-1.4.3-py2.7-linux-x86_64.egg/matplotlib/style/core.py", line 66, in use<br>    raise ValueError(msg % style)<br>ValueError: 'classic' not found in the style library and input is not a valid URL or path. See `style.available` for list of available styles.<br><br></div>Thanks!<br></div>Stephanie<br clear="all"><div><div><div><div><div><div><div><div data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></div></div></div></div></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>