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
make Graphics.plot refuses argument #19539
Comments
Branch: u/vdelecroix/19539 |
New commits:
|
Commit: |
comment:2
Just adding a comment to say that I admire your courage. |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:4
Replying to @nathanncohen:
What about a courageous review? |
comment:5
Let's try: - if hasattr(funcs, 'plot'):
+ if isinstance(funcs, Graphics):
+ G = funcs
+ elif hasattr(funcs, 'plot'): Why would you ignore (without warning) the contents of Nathann |
comment:6
More or less.
And nobody inherits from it. I did it because some code is calling plot(x)... you are right that it would be better to fix it instead. What do you think that the following should do
It used to return C unchanged and it still does. What my code is modifying is
|
comment:7
Hello,
If it ignores the 'aspect_ratio=2' argument then it should raise an exception instead, exactly as you do it in this branch for Nathann |
comment:9
done! |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:11
Looks good. Thank you for this branch, Nathann |
Reviewer: Nathann Cohen |
Changed branch from u/vdelecroix/19539 to |
Currently
Graphics.plot
ignore all input arguments which make the following very confusingWe simply disallow arguments in order to have
CC: @sagetrac-mhs @kcrisman
Component: graphics
Author: Vincent Delecroix
Branch/Commit:
a322663
Reviewer: Nathann Cohen
Issue created by migration from https://trac.sagemath.org/ticket/19539
The text was updated successfully, but these errors were encountered: