{"action":"closed","issue":{"url":"https://api.github.com/repos/jwass/mplleaflet/issues/10","labels_url":"https://api.github.com/repos/jwass/mplleaflet/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/jwass/mplleaflet/issues/10/comments","events_url":"https://api.github.com/repos/jwass/mplleaflet/issues/10/events","html_url":"https://github.com/jwass/mplleaflet/issues/10","id":56324860,"number":10,"title":"plt.scatterplot c argument doesn't work","user":{"login":"shoyer","id":1217238,"avatar_url":"https://avatars.githubusercontent.com/u/1217238?v=3","gravatar_id":"","url":"https://api.github.com/users/shoyer","html_url":"https://github.com/shoyer","followers_url":"https://api.github.com/users/shoyer/followers","following_url":"https://api.github.com/users/shoyer/following{/other_user}","gists_url":"https://api.github.com/users/shoyer/gists{/gist_id}","starred_url":"https://api.github.com/users/shoyer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shoyer/subscriptions","organizations_url":"https://api.github.com/users/shoyer/orgs","repos_url":"https://api.github.com/users/shoyer/repos","events_url":"https://api.github.com/users/shoyer/events{/privacy}","received_events_url":"https://api.github.com/users/shoyer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-03T02:24:10Z","updated_at":"2015-05-03T13:44:02Z","closed_at":"2015-05-03T13:44:02Z","body":"When I run this example, I get the following traceback:\r\n```\r\nimport mplleaflet\r\nimport matplotlib.pyplot as plt\r\n\r\nplt.scatter([0, 10, 0, 10], [0, 0, 10, 10], c=[1, 2, 3, 4])\r\nmplleaflet.display()\r\n```\r\n```\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-100-b851626ef3d4> in <module>()\r\n      1 plt.scatter([0, 10, 0, 10], [0, 0, 10, 10], c=[1, 2, 3, 4])\r\n----> 2 mplleaflet.display()\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplleaflet/_display.pyc in display(fig, closefig, **kwargs)\r\n    136         plt.close(fig)\r\n    137 \r\n--> 138     html = fig_to_html(fig, template=\"ipynb.html\", **kwargs)\r\n    139     return HTML(html)\r\n    140 \r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplleaflet/_display.pyc in fig_to_html(fig, template, tiles, crs, epsg)\r\n     70     renderer = LeafletRenderer(crs=crs, epsg=epsg)\r\n     71     exporter = Exporter(renderer)\r\n---> 72     exporter.run(fig)\r\n     73 \r\n     74     attribution = _attribution + ' | ' + tiles[1]\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/exporter.pyc in run(self, fig)\r\n     49             import matplotlib.pyplot as plt\r\n     50             plt.close(fig)\r\n---> 51         self.crawl_fig(fig)\r\n     52 \r\n     53     @staticmethod\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/exporter.pyc in crawl_fig(self, fig)\r\n    116                                        props=utils.get_figure_properties(fig)):\r\n    117             for ax in fig.axes:\r\n--> 118                 self.crawl_ax(ax)\r\n    119 \r\n    120     def crawl_ax(self, ax):\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/exporter.pyc in crawl_ax(self, ax)\r\n    138                 self.draw_patch(ax, patch)\r\n    139             for collection in ax.collections:\r\n--> 140                 self.draw_collection(ax, collection)\r\n    141             for image in ax.images:\r\n    142                 self.draw_image(ax, image)\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/exporter.pyc in draw_collection(self, ax, collection, force_pathtrans, force_offsettrans)\r\n    270                                            offset_order=offset_order,\r\n    271                                            styles=styles,\r\n--> 272                                            mplobj=collection)\r\n    273 \r\n    274     def draw_image(self, ax, image):\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/renderers/base.pyc in draw_path_collection(self, paths, path_coordinates, path_transforms, offsets, offset_coordinates, offset_order, styles, mplobj)\r\n    253 \r\n    254         for tup in self._iter_path_collection(paths, path_transforms,\r\n--> 255                                               offsets, styles):\r\n    256             (path, path_transform, offset, ec, lw, fc) = tup\r\n    257             vertices, pathcodes = path\r\n\r\n/Users/shoyer/miniconda/envs/rapid/lib/python2.7/site-packages/mplexporter/renderers/base.pyc in _iter_path_collection(paths, path_transforms, offsets, styles)\r\n    190         N = max(len(paths), len(offsets))\r\n    191 \r\n--> 192         if not path_transforms:\r\n    193             path_transforms = [np.eye(3)]\r\n    194 \r\n\r\nValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()\r\n```\r\n\r\nThanks for your work on this project! I can't believe I just discovered it yesterday :)."}}