{"action":"created","issue":{"url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/84","repository_url":"https://api.github.com/repos/maartenbreddels/ipyvolume","labels_url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/84/comments","events_url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/84/events","html_url":"https://github.com/maartenbreddels/ipyvolume/issues/84","id":275333643,"number":84,"title":"plot_surface does not produce expected results","user":{"login":"flothesof","id":2360669,"avatar_url":"https://avatars1.githubusercontent.com/u/2360669?v=4","gravatar_id":"","url":"https://api.github.com/users/flothesof","html_url":"https://github.com/flothesof","followers_url":"https://api.github.com/users/flothesof/followers","following_url":"https://api.github.com/users/flothesof/following{/other_user}","gists_url":"https://api.github.com/users/flothesof/gists{/gist_id}","starred_url":"https://api.github.com/users/flothesof/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/flothesof/subscriptions","organizations_url":"https://api.github.com/users/flothesof/orgs","repos_url":"https://api.github.com/users/flothesof/repos","events_url":"https://api.github.com/users/flothesof/events{/privacy}","received_events_url":"https://api.github.com/users/flothesof/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-11-20T12:08:10Z","updated_at":"2017-11-30T15:25:02Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\nthanks for your work on ipyvolume. I've just spent a couple of tens of minutes getting it to work and didn't manage to do it. I'm using a test case from matplotlibs gallery (here: http://matplotlib.org/gallery/mplot3d/surface3d.html#sphx-glr-gallery-mplot3d-surface3d-py).\r\nMy first test works.\r\n![image](https://user-images.githubusercontent.com/2360669/33017653-752b7ef4-cdf3-11e7-9a7a-508c1163b576.png)\r\nHowever, when I'm changing the size of the array X by changing its step size in the arange method, I get weird results.\r\n![image](https://user-images.githubusercontent.com/2360669/33017693-97b35dd4-cdf3-11e7-9334-2d55e7b8f45f.png)\r\nWhat am I doing wrong?\r\nHere's the source:\r\n```python\r\n# test case 1\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\nimport numpy as np\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\n\r\n# Make data.\r\nX = np.arange(-5, 5, 0.5)\r\nY = np.arange(-5, 5, 0.5)\r\nX, Y = np.meshgrid(X, Y, indexing='xy')\r\nR = np.sqrt(X**2 + Y**2)\r\nZ = np.sin(R)\r\n\r\n# Plot the surface.\r\nsurf = ax.plot_surface(X, Y, Z)\r\n\r\np3.figure()\r\np3.plot_surface(X, Y, Z)\r\np3.show()\r\n```\r\n\r\n```python\r\n# test case 2\r\nfrom mpl_toolkits.mplot3d import Axes3D\r\nimport numpy as np\r\n\r\nfig = plt.figure()\r\nax = fig.gca(projection='3d')\r\n\r\n# Make data.\r\nX = np.arange(-5, 5, 0.25)\r\nY = np.arange(-5, 5, 0.5)\r\nX, Y = np.meshgrid(X, Y, indexing='xy')\r\nR = np.sqrt(X**2 + Y**2)\r\nZ = np.sin(R)\r\n\r\n# Plot the surface.\r\nsurf = ax.plot_surface(X, Y, Z)\r\n\r\np3.figure()\r\np3.plot_surface(X, Y, Z)\r\np3.show()\r\n```\r\nThanks for your help (this is an amazing project, I'm just sad it didn't work in my case... ^^)"},"comment":{"url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/comments/348221034","html_url":"https://github.com/maartenbreddels/ipyvolume/issues/84#issuecomment-348221034","issue_url":"https://api.github.com/repos/maartenbreddels/ipyvolume/issues/84","id":348221034,"user":{"login":"maartenbreddels","id":1765949,"avatar_url":"https://avatars0.githubusercontent.com/u/1765949?v=4","gravatar_id":"","url":"https://api.github.com/users/maartenbreddels","html_url":"https://github.com/maartenbreddels","followers_url":"https://api.github.com/users/maartenbreddels/followers","following_url":"https://api.github.com/users/maartenbreddels/following{/other_user}","gists_url":"https://api.github.com/users/maartenbreddels/gists{/gist_id}","starred_url":"https://api.github.com/users/maartenbreddels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maartenbreddels/subscriptions","organizations_url":"https://api.github.com/users/maartenbreddels/orgs","repos_url":"https://api.github.com/users/maartenbreddels/repos","events_url":"https://api.github.com/users/maartenbreddels/events{/privacy}","received_events_url":"https://api.github.com/users/maartenbreddels/received_events","type":"User","site_admin":false},"created_at":"2017-11-30T15:25:02Z","updated_at":"2017-11-30T15:25:02Z","author_association":"OWNER","body":"(sorry for the late reply, was off the radar for a while)\r\nRegarding a new version, I'd like to get that out soon, so stay tuned!"}}
{"actor":{"display_login":"maartenbreddels"}}