pybeeswarm icon indicating copy to clipboard operation
pybeeswarm copied to clipboard

“TypeError: 'module' object is not callable” error when using beeswarm

Open Sunyp-IM opened this issue 7 years ago • 1 comments

I am try to use beeswarm to plot some data with the follow codes:

import beeswarm from beeswarm import * import numpy as np

d = np.array([0,1,2,3,4]) beeswarm([d]) Then the error comes as:

Traceback (most recent call last): File "/home/sunyp/softwares/build/Anaconda2-5.1.0/lib/python2.7/site-packages/IPython/core/interactiveshell.py", line 2882, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in beeswarm([d1]) TypeError: 'module' object is not callable Does anyone know how do deal with this problem? Thank you in advance

Sunyp-IM avatar Oct 30 '18 06:10 Sunyp-IM

Instead: beeswarm([d]) try: beeswarm.beeswarm([d])

oskaruchanski avatar Apr 23 '19 12:04 oskaruchanski