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
Axes3d error on set_title #1759
Comments
Looks like this is a regression in master only. Possibly caused by the recent changes to set_title()? I am not exactly sure what is happening here, but it isn't caused by Axes3D, so this is a release-blocker. |
The problem is that Axes3D is calling Axes.set_title with fontdict as a positional argument, not a kwarg, so it is being mis-interpreted as loc, because that is now the third argument in Axes.set_title. I think that if you change line 2364 to use "fontdict=fontdict", everything will work. |
Wouldn't the real bug be that we needlessly changed the call signature for |
Changing the relative positions of the named kwargs in set_title is a reasonable thing to do, given the history of it. You could make that change in the same PR; now is the time to change it, since there has been no release with the loc kwarg in set_title. I think the rationale for having loc come before fontdict is that it is a more natural to be able to write "ax.set_title('some title', 'left')', leaving out the loc keyword, than to do that with the fontdict, which is a complex beast. That has to be weighed against the possibility of breakage, given the long history of set_title with the fontdict kwarg following the string argument. |
Submited PR #1764 |
Make loc come after fontdict in set_title. Closes #1759
The
Axes3D
callsset_title
with an emptyloc
parameter, which throws an error.If the
loc
parameter is passed explicitly toset_title
:the
loc
parameter is passed twice, and the following error occurs:The text was updated successfully, but these errors were encountered: