Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

code error? #30

Closed
y9c opened this issue Dec 16, 2015 · 1 comment
Closed

code error? #30

y9c opened this issue Dec 16, 2015 · 1 comment

Comments

@y9c
Copy link

y9c commented Dec 16, 2015

[in]
cf.datagen.sinwave(10,.25).iplot(kind='surface',theme='solar',colorscale='brbg',title='Cufflinks - Surface Plot',margin=(0,0,0,0))
[out]

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-10-51640e31aa23> in <module>()
      1 cf.datagen.sinwave(10,.25).iplot(kind='surface',theme='solar',colorscale='brbg',title='Cufflinks - Surface Plot',
----> 2                                  margin=(0,0,0,0))

/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)
    584         layout=tools.getLayout(theme=theme,xTitle=xTitle,yTitle=yTitle,zTitle=zTitle,title=title,barmode=barmode,
    585                                                                 bargap=bargap,bargroupgap=bargroupgap,annotations=annotations,gridcolor=gridcolor,
--> 586                                 zerolinecolor=zerolinecolor,margin=margin,is3d='3d' in kind,**l_kwargs)
    587 
    588         if not data:

/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)
    165                         margin=margin
    166                 else:
--> 167                         margin=dict(list(zip(('l','r','b','t')),margin))
    168                 layout.update(margin=margin)
    169 

TypeError: list() takes at most 1 argument (2 given)

do you mean these?

[in]
margin=(0,0,0,0)
dict(list(zip(('l','r','b','t')),margin))
[out]

---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-17-de394516c4a5> in <module>()
      1 margin=(0,0,0,0)
----> 2 dict(list(zip(('l','r','b','t')),margin))

TypeError: list() takes at most 1 argument (2 given)

[in]
margin=(0,0,0,0)
dict(list(zip(('l','r','b','t'),margin)))
[out]

{'b': 0, 'l': 0, 'r': 0, 't': 0}
@santosjorge
Copy link
Owner

Thank you. Fixed now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants