[yt-users] inconsistent backend when using yt interactively

Slavin, Jonathan jslavin at cfa.harvard.edu
Thu Dec 7 12:34:38 PST 2017


Hi all,

I've been using yt for some time, but mostly as a way to access AMR data
generated by FLASH.  Just now I tried using the (new, I think) interactive
plotting capabilities of yt by doing:
yt.toggle_interactivity()
ds = yt.load(hdf5_file)
p2d = yt.plot_2d(ds,'temperature')

When I toggle interactivity I get the message:
Using matplotlib backend: Qt5Agg

​but when I try to generate the 2d plot I get a bunch of error messages
ending with:
​/export/slavin/python/anaconda/lib/python2.7/site-packages/yt/visualization/base_plot_types.pyc
in _set_canvas(self)
    120                 mod = __import__('matplotlib.backends', globals(),
locals(),
    121                                  [backend_dict[key][0]], 0)
--> 122                 submod = getattr(mod, backend_dict[key][0])
    123                 FigureCanvas = getattr(submod, backend_dict[key][1])
    124                 if len(backend_dict[key]) > 2:

AttributeError: 'module' object has no attribute 'backend_gt5agg'

​So somehow the backend got changed to, or was assumed​ to be, gt5agg
rather than qt5agg.  It's especially weird in that I don't think there even
is a gt5agg backend.  Seems a mixture of qt5agg and gtkagg.  Any ideas?

Jon

-- 
________________________________________________________
Jonathan D. Slavin                 Harvard-Smithsonian CfA
jslavin at cfa.harvard.edu       60 Garden Street, MS 83
phone: (617) 496-7981       Cambridge, MA 02138-1516
cell: (781) 363-0035             USA
________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20171207/c3747659/attachment.html>


More information about the yt-users mailing list