--------------------------------------------------------------------------- ValueError Traceback (most recent call last) <ipython-input-47-6723e41ae15d> in <module> () ----> 1 display_d3 ( fig ) /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/display.pyc in display_d3 (fig, closefig, d3_url) 50 if closefig : 51 plt . close ( fig ) ---> 52 return HTML ( fig_to_d3 ( fig , d3_url ) ) 53 54 /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/display.pyc in fig_to_d3 (fig, d3_url) 21 the IPython HTML rich display of the figure . 22 """ ---> 23 return D3Figure ( fig ) . html ( d3_url ) 24 25 /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/_objects.pyc in html (self, d3_url, with_d3_import, with_style) 129 result += self . style ( ) 130 --> 131 axes = '

' . join ( ax . html ( ) for ax in self . axes ) 132 fig = self.FIGURE_TEMPLATE.format(figid=self.figid, 133 figwidth = self . fig . get_figwidth ( ) , /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/_objects.pyc in <genexpr> ((ax,)) 129 result += self . style ( ) 130 --> 131 axes = '

' . join ( ax . html ( ) for ax in self . axes ) 132 fig = self.FIGURE_TEMPLATE.format(figid=self.figid, 133 figwidth = self . fig . get_figwidth ( ) , /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/_objects.pyc in html (self) 392 393 def html ( self ) : --> 394 elements = '

' . join ( c . html ( ) for c in self . children ) 395 zooms = '

' . join ( c . zoom ( ) for c in self . children ) 396 /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/_objects.pyc in <genexpr> ((c,)) 392 393 def html ( self ) : --> 394 elements = '

' . join ( c . html ( ) for c in self . children ) 395 zooms = '

' . join ( c . zoom ( ) for c in self . children ) 396 /Users/mwaskom/anaconda/lib/python2.7/site-packages/mpld3-0.0.1-py2.7.egg/mpld3/_objects.pyc in html (self) 1154 self . x , self . y = 0 , 0 1155 data = self . image . get_array ( ) . data -> 1156 self . height , self . width = data . shape 1157 1158 binary_buffer = io . BytesIO ( ) ValueError : too many values to unpack