-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
axes.legend TypeError in v2.2.0 #10784
Comments
@ewels Just by curiosity: you are passing |
Looking at @tacaswell's fix (b177c85), it seems that the case if total is None:
total = 1.0 if taken care of just a bit to late ( |
Hmm, sorry @afvincent - looks like my reply to your first comment never made it yesterday. The minimal example is a stripped down version of the code I'm using in my tool MultiQC, here. These plots can have large numbers of samples, so yes there can often be more than just 2 datasets. Thanks for looking into this! |
After v2.2.0 came out, I expected my tool to start working again as the above bug had been fixed. Unfortunately, my minimal example was too minimal and there was a second, very similar, bug that was missed.
It seems that adding the argument
ncol=5
to theaxes.legend
call in the previous minimal example triggers the error that I'm now seeing.Minimal example:
Note that my full
axes.label()
call is as follows:Matplotlib version
print(matplotlib.get_backend())
): MacOSXmatplotlib installed using pip, python installed using conda locally (OSX) and on Travis CI.
Pinging @tacaswell, @dstansby and @afvincent as you fixed the previous bug 😉
The text was updated successfully, but these errors were encountered: