{"action":"opened","issue":{"url":"https://api.github.com/repos/sagemath/cloud/issues/203","labels_url":"https://api.github.com/repos/sagemath/cloud/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/sagemath/cloud/issues/203/comments","events_url":"https://api.github.com/repos/sagemath/cloud/issues/203/events","html_url":"https://github.com/sagemath/cloud/issues/203","id":128925905,"number":203,"title":"Plot seems to fail","user":{"login":"danyill","id":674783,"avatar_url":"https://avatars.githubusercontent.com/u/674783?v=3","gravatar_id":"","url":"https://api.github.com/users/danyill","html_url":"https://github.com/danyill","followers_url":"https://api.github.com/users/danyill/followers","following_url":"https://api.github.com/users/danyill/following{/other_user}","gists_url":"https://api.github.com/users/danyill/gists{/gist_id}","starred_url":"https://api.github.com/users/danyill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danyill/subscriptions","organizations_url":"https://api.github.com/users/danyill/orgs","repos_url":"https://api.github.com/users/danyill/repos","events_url":"https://api.github.com/users/danyill/events{/privacy}","received_events_url":"https://api.github.com/users/danyill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-26T20:01:41Z","updated_at":"2016-01-26T20:01:41Z","closed_at":null,"body":"For: https://cloud.sagemath.com/projects/2a2796e2-e818-4f4b-928f-e111b1bdcf75/files/Cap_Calc_R135_for_mod.sagews\r\n\r\nThis used to work quite well, now I get errors associated with the plot command:\r\n\r\n``` python\r\ndef simpler_equations_interact(C_val = slider(range(1,100000), default = 1)):\r\n    a=plot([arrow2d(tailpoint=(0, 0), headpoint=CC(eq122_cap(C_val*10**-9)), color='red', legend_label=\"$V_{R_{1}}$\", legend_color='black'),\r\n            arrow2d(tailpoint=(0, 0), headpoint=CC(magang(vnom_val,-120)), color='yellow', legend_label=\"$V_{Y_{1}}$\", legend_color='black'),\r\n            arrow2d(tailpoint=(0, 0), headpoint=CC(magang(vnom_val,-240)), color='blue', legend_label=\"$V_{B_{1}}$\", legend_color='black'),\r\n            arrow2d(tailpoint=(0, 0), headpoint=CC(eq122_cap(C_val*10**-9)+magang(vnom_val,-120)+magang(vnom_val,-240)), color='green', legend_label=\"$3V_0$\", legend_color='black',width=2)],\r\n                legend_label='result phasors',\r\n                legend_color='green',\r\n                title=\"Changing R phase source impedance, $R_{RS}$ from 1$\\Omega$ to 20k$\\Omega$ to simulate evolving open-circuit\",\r\n                xmin=-190,xmax=190,ymin=-190,ymax=190,\r\n                scale='linear')\r\n    a.show(xmin=-190,ymin=-190,xmax=190,ymax=190)\r\n```\r\n\r\nThe error I get is:\r\n\r\n``` python\r\nError in lines 1-1\r\nTraceback (most recent call last):\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py\", line 905, in execute\r\n    exec compile(block+'\\n', '', 'single') in namespace, locals\r\n  File \"\", line 1, in <module>\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py\", line 1055, in _execute_interact\r\n    sage_salvus.interacts[id](vals)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py\", line 216, in __call__\r\n    self._f(**dict([(k,self._last_vals[k]) for k in self._args]))\r\n  File \"\", line 11, in simpler_equations_interact\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 705, in wrapper\r\n    return func(*args, **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 550, in wrapper\r\n    return func(*args, **options)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1310, in plot\r\n    G = _plot(funcs, (xmin, xmax), **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1467, in _plot\r\n    fillcolor = fillcolor_temp, **options_temp)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 705, in wrapper\r\n    return func(*args, **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 550, in wrapper\r\n    return func(*args, **options)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1301, in plot\r\n    G = funcs.plot(*args, **original_opts)\r\nTypeError: plot() takes exactly 1 argument (16 given)\r\n```\r\n\r\nI can't see a reason for this. I have looked at the plot help. Has there been a breaking change in the plot command?\r\n\r\nI can replicate in a new worksheet with:\r\n``` python\r\nb=[arrow2d(tailpoint=(0, 0), headpoint=(1,4), color='red', legend_label=\"$V_{R_{1}}$\", legend_color='black'),\r\n   arrow2d(tailpoint=(0, 0), headpoint=(1,3), color='yellow', legend_label=\"$V_{Y_{1}}$\", legend_color='black'),\r\n   arrow2d(tailpoint=(0, 0), headpoint=(1,2), color='blue', legend_label=\"$V_{B_{1}}$\", legend_color='black'),\r\n   arrow2d(tailpoint=(0, 0), headpoint=(1,1), color='green', legend_label=\"$3V_0$\", legend_color='black',width=2)]\r\na=plot(b)\r\n```\r\n\r\nwhich gives the error:\r\n\r\n``` python\r\nError in lines 5-5\r\nTraceback (most recent call last):\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/smc_sagews/sage_server.py\", line 905, in execute\r\n    exec compile(block+'\\n', '', 'single') in namespace, locals\r\n  File \"\", line 1, in <module>\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 705, in wrapper\r\n    return func(*args, **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 550, in wrapper\r\n    return func(*args, **options)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1310, in plot\r\n    G = _plot(funcs, (xmin, xmax), **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1467, in _plot\r\n    fillcolor = fillcolor_temp, **options_temp)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 705, in wrapper\r\n    return func(*args, **kwds)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/misc/decorators.py\", line 550, in wrapper\r\n    return func(*args, **options)\r\n  File \"/projects/sage/sage-6.10/local/lib/python2.7/site-packages/sage/plot/plot.py\", line 1301, in plot\r\n    G = funcs.plot(*args, **original_opts)\r\nTypeError: plot() takes exactly 1 argument (15 given)\r\n```\r\n\r\nI hope this is not a silly issue..."}}