Skip to content
This repository has been archived by the owner on Aug 1, 2022. It is now read-only.

TypeError: __init__() missing 1 required positional argument: 'seed' #58

Open
zkytony opened this issue Sep 18, 2020 · 4 comments
Open

Comments

@zkytony
Copy link

zkytony commented Sep 18, 2020

When I tried to use add_state_annotation() to a barplot, I get the following error:

Traceback (most recent call last):
  File "plotting.py", line 63, in result_plot
    add_stat_annotation(ax, plot="barplot", data=df,
  File "/home/myhome/pyenv/py37/lib/python3.7/site-packages/statannot/statannot.py", line 442, in add_stat_annotation
    errcolor=".26", errwidth=None, capsize=None, dodge=True)
TypeError: __init__() missing 1 required positional argument: 'seed'

I am using seaborn 0.11.0. I checked seaborn's source code and indeed there is a required seed argument. I think this is a simple bug to be fixed. Also, it would be nice to have some barplot examples in the Jupyter Notebook, so that the barplot annotation functionality is tested:)

@ShawnGao911101
Copy link

Hi @zkytony ,

Just met the same problem. Have you sort it out?

Cheers,
Shang

@zkytony
Copy link
Author

zkytony commented Oct 27, 2020

I forked and fixed this in a commit zkytony@5048761

@ShawnGao911101
Copy link

Many thanks mate, problem solved! @zkytony

@kpj
Copy link

kpj commented Nov 27, 2020

See also #48.

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

No branches or pull requests

3 participants