{"action":"created","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4812","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4812/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4812/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4812/events","html_url":"https://github.com/matplotlib/matplotlib/issues/4812","id":97788536,"number":4812,"title":"Error while trying trendvis examples: ValueError: Expected 2-dimensional array, got 1","user":{"login":"jorgesca","id":956679,"avatar_url":"https://avatars.githubusercontent.com/u/956679?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgesca","html_url":"https://github.com/jorgesca","followers_url":"https://api.github.com/users/jorgesca/followers","following_url":"https://api.github.com/users/jorgesca/following{/other_user}","gists_url":"https://api.github.com/users/jorgesca/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgesca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgesca/subscriptions","organizations_url":"https://api.github.com/users/jorgesca/orgs","repos_url":"https://api.github.com/users/jorgesca/repos","events_url":"https://api.github.com/users/jorgesca/events{/privacy}","received_events_url":"https://api.github.com/users/jorgesca/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-28T19:55:37Z","updated_at":"2015-08-13T12:11:44Z","closed_at":null,"body":"Hi, I read about trendvis today and wanted to give it a try. I usually follow the master branch, which I update now and then. I updated mpl today, making sure I had a clean install (uninstalled mpl, did `git clean -fxd` as suggested in #3898, then run `python setup.py develop --user`) When I try some of the examples in [trendvis](https://github.com/matplotlib/trendvis) I get the error: `ValueError: Expected 2-dimensional array, got 1`.\r\nAs of today, trendvis includes 3 examples in the [README.rst](https://github.com/matplotlib/trendvis/blob/363e944482daa462d445d3b4bfaa7345fca13b2e/README.rst). The first one runs fine, while the second and the third give the aforementioned error. Matplotlib from Arch repos (1.4.3) works fine with these examples. The complete traceback for the 3rd example, labeled \"Three-column XGrid with advanced features\", follows:\r\n```python\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-1-cc8e40190aa7> in <module>()\r\n     55 \r\n     56 # Draw a vertical bar behind the data - horizontal bars available too\r\n---> 57 ex2.draw_bar(ex2.axes[1][2], ex2.axes[0][2], (45, 47), color='lightblue')\r\n     58 \r\n     59 # Ok to set axis limits after drawing on figure using TrendVis methods,\r\n\r\n/home/jscandal/sw/trendvis/trendvis/trendvis/gridclass.py in draw_bar(self, ll_axis, ur_axis, bar_limits, orientation, zorder, **kwargs)\r\n    720 \r\n    721         ll_corner  = self._convert_coords(ll_axis, (lldx, lldy))\r\n--> 722         ur_corner = self._convert_coords(ur_axis, (urdx, urdy))\r\n    723 \r\n    724         width, height = self._rect_dim(ur_corner, ll_corner)\r\n\r\n/home/jscandal/sw/trendvis/trendvis/trendvis/gridclass.py in _convert_coords(self, axis, coordinates)\r\n    919 \r\n    920         # Convert to axes coordinates\r\n--> 921         ax_coords = axis.transData.transform(coordinates)\r\n    922 \r\n    923         # Convert to figure coordinates\r\n\r\n/home/jscandal/sw/matplotlib/matplotlib.py3/lib/matplotlib/transforms.py in transform(self, values)\r\n   1301         # Ensure that values is a 2d array (but remember whether\r\n   1302         # we started with a 1d or 2d array).\r\n-> 1303         values = np.asanyarray(values)\r\n   1304         ndim = values.ndim\r\n   1305         values = values.reshape((-1, self.input_dims))\r\n\r\n/usr/lib/python3.4/site-packages/numpy/core/numeric.py in asanyarray(a, dtype, order)\r\n    512 \r\n    513     \"\"\"\r\n--> 514     return array(a, dtype, copy=False, order=order, subok=True)\r\n    515 \r\n    516 def ascontiguousarray(a, dtype=None):\r\n\r\nValueError: Expected 2-dimensional array, got 1\r\n```"},"comment":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/comments/130645162","html_url":"https://github.com/matplotlib/matplotlib/issues/4812#issuecomment-130645162","issue_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/4812","id":130645162,"user":{"login":"jorgesca","id":956679,"avatar_url":"https://avatars.githubusercontent.com/u/956679?v=3","gravatar_id":"","url":"https://api.github.com/users/jorgesca","html_url":"https://github.com/jorgesca","followers_url":"https://api.github.com/users/jorgesca/followers","following_url":"https://api.github.com/users/jorgesca/following{/other_user}","gists_url":"https://api.github.com/users/jorgesca/gists{/gist_id}","starred_url":"https://api.github.com/users/jorgesca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorgesca/subscriptions","organizations_url":"https://api.github.com/users/jorgesca/orgs","repos_url":"https://api.github.com/users/jorgesca/repos","events_url":"https://api.github.com/users/jorgesca/events{/privacy}","received_events_url":"https://api.github.com/users/jorgesca/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T12:11:44Z","updated_at":"2015-08-13T12:11:44Z","body":"Hi @stefanv , did you actually run the examples with the development version of matplotlib (Please note that the first example is OK, and the last two have the problem.)? It isn't fixed for me. If you did, then it might be something local, although I can't really think what it could be. I have installed all dependencies including numpy from the anaconda distribution, and built from source trendvis and matplotlib, in a conda environment"}}