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
Pylab function show() accepts any arguments #1712
Comments
True, but mpl has never had a policy of strict argument validation. The advantage of strict validation is that it can catch programming errors early; the disadvantage is that it adds a lot of code that must be tested and maintained, and that provides no core functionality. I think there are places where adding or improving argument validation would be worth the extra code, but show() is not one of them. I'm inclined to close this as "won't fix", but I will leave it open for discussion for a short while. |
On 28.1.2013 19:49, Eric Firing wrote:
It was real case of my colleague (non-programmer), to write show(G) The current behaviour of show() is such: show() is OK, works as described in documentation (in case of my colleague, after closing the figure, there was another
I think, the show() function is used mainly by "ordinary" users, which are |
On Tue, Jan 29, 2013 at 8:37 AM, misolietavec notifications@github.comwrote:
Most likely, the code goes:
There really isn't much that could be done here (except possibly deprecate |
On 2013/01/29 8:50 AM, Benjamin Root wrote:
But it turns out that the argument can be quite useful, so I am more Eric
|
Closing as 'wontfix' |
For example (at ordinary Python shell):
and for such nonsense no error message appears...
(according to documentation, show should accept only one experimental keyword, block)
This behaviour is observed in Matplotlib 1.1.0 (Debian testing package) and also in version 1.2 (compiled in virtualenv).
The text was updated successfully, but these errors were encountered: