pybeeswarm
pybeeswarm copied to clipboard
“TypeError: 'module' object is not callable” error when using beeswarm
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 "
Instead:
beeswarm([d])
try:
beeswarm.beeswarm([d])