{"action":"opened","issue":{"url":"https://api.github.com/repos/santosjorge/cufflinks/issues/30","labels_url":"https://api.github.com/repos/santosjorge/cufflinks/issues/30/labels{/name}","comments_url":"https://api.github.com/repos/santosjorge/cufflinks/issues/30/comments","events_url":"https://api.github.com/repos/santosjorge/cufflinks/issues/30/events","html_url":"https://github.com/santosjorge/cufflinks/issues/30","id":122512667,"number":30,"title":"code error?","user":{"login":"yech1990","id":5415510,"avatar_url":"https://avatars.githubusercontent.com/u/5415510?v=3","gravatar_id":"","url":"https://api.github.com/users/yech1990","html_url":"https://github.com/yech1990","followers_url":"https://api.github.com/users/yech1990/followers","following_url":"https://api.github.com/users/yech1990/following{/other_user}","gists_url":"https://api.github.com/users/yech1990/gists{/gist_id}","starred_url":"https://api.github.com/users/yech1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yech1990/subscriptions","organizations_url":"https://api.github.com/users/yech1990/orgs","repos_url":"https://api.github.com/users/yech1990/repos","events_url":"https://api.github.com/users/yech1990/events{/privacy}","received_events_url":"https://api.github.com/users/yech1990/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-16T14:16:01Z","updated_at":"2015-12-16T14:16:01Z","closed_at":null,"body":"```python\r\n[in]\r\ncf.datagen.sinwave(10,.25).iplot(kind='surface',theme='solar',colorscale='brbg',title='Cufflinks - Surface Plot',margin=(0,0,0,0))\r\n```\r\n```python\r\n[out]\r\n\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-10-51640e31aa23> in <module>()\r\n      1 cf.datagen.sinwave(10,.25).iplot(kind='surface',theme='solar',colorscale='brbg',title='Cufflinks - Surface Plot',\r\n----> 2                                  margin=(0,0,0,0))\r\n\r\n/usr/local/lib/python2.7/dist-packages/cufflinks/plotlytools.pyc in _iplot(self, data, layout, filename, sharing, kind, title, xTitle, yTitle, zTitle, theme, colors, colorscale, fill, width, dash, mode, symbol, size, barmode, sortbars, bargap, bargroupgap, bins, histnorm, histfunc, orientation, boxpoints, annotations, keys, bestfit, bestfit_colors, mean, mean_colors, categories, x, y, z, text, gridcolor, zerolinecolor, margin, labels, values, secondary_y, subplots, shape, error_x, error_y, error_type, asFrame, asDates, asFigure, asImage, dimensions, asPlot, asUrl, online, **kwargs)\r\n    584 \t\tlayout=tools.getLayout(theme=theme,xTitle=xTitle,yTitle=yTitle,zTitle=zTitle,title=title,barmode=barmode,\r\n    585                                                                 bargap=bargap,bargroupgap=bargroupgap,annotations=annotations,gridcolor=gridcolor,\r\n--> 586 \t\t\t\t\t\t\t\tzerolinecolor=zerolinecolor,margin=margin,is3d='3d' in kind,**l_kwargs)\r\n    587 \r\n    588         if not data:\r\n\r\n/usr/local/lib/python2.7/dist-packages/cufflinks/tools.pyc in getLayout(theme, title, xTitle, yTitle, zTitle, barmode, bargap, bargroupgap, gridcolor, zerolinecolor, margin, annotations, is3d, **kwargs)\r\n    165                         margin=margin\r\n    166                 else:\r\n--> 167                         margin=dict(list(zip(('l','r','b','t')),margin))\r\n    168                 layout.update(margin=margin)\r\n    169 \r\n\r\nTypeError: list() takes at most 1 argument (2 given)\r\n```\r\n\r\n\r\n# do you mean these?\r\n\r\n```python\r\n[in]\r\nmargin=(0,0,0,0)\r\ndict(list(zip(('l','r','b','t')),margin))\r\n```\r\n```python\r\n[out]\r\n\r\n---------------------------------------------------------------------------\r\nTypeError                                 Traceback (most recent call last)\r\n<ipython-input-17-de394516c4a5> in <module>()\r\n      1 margin=(0,0,0,0)\r\n----> 2 dict(list(zip(('l','r','b','t')),margin))\r\n\r\nTypeError: list() takes at most 1 argument (2 given)\r\n```\r\n\r\n---\r\n\r\n\r\n```python\r\n[in]\r\nmargin=(0,0,0,0)\r\ndict(list(zip(('l','r','b','t'),margin)))\r\n```\r\n```python\r\n[out]\r\n\r\n{'b': 0, 'l': 0, 'r': 0, 't': 0}\r\n```\r\n\r\n\r\n"}}