predicting_stock_prices git:(master) ✗ python demo.py
Traceback (most recent call last):
File "demo.py", line 7, in <module>
plt.switch_backend('newbackend')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/pyplot.py", line 122, in switch_backend
matplotlib.use(newbackend, warn=False, force=True)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/__init__.py", line 1149, in use
name = validate_backend(arg)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 146, in validate_backend
return _validate_standard_backends(s)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/matplotlib/rcsetup.py", line 57, in __call__
% (self.key, s, self.valid.values()))
ValueError: Unrecognized backend string "newbackend": valid strings are ['pdf', 'pgf', 'Qt4Agg', 'GTK', 'GTKAgg', 'ps', 'agg', 'cairo', 'MacOSX', 'GTKCairo', 'WXAgg', 'template', 'TkAgg', 'GTK3Cairo', 'GTK3Agg', 'svg', 'WebAgg', 'CocoaAgg', 'emf', 'gdk', 'WX']