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
list_plot
should accept lists of complex numbers
#12035
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
comment:2
Patch up, please review. I improved the docstring for
But I have a couple concerns:
Also, we do need to figure this out in |
comment:3
Updated patch. I edited the docstring a bit and improved (I think) the Sphinx markup. |
Author: Dan Drake |
Reviewer: Keshav Kini |
comment:5
Nice! All tests pass on |
comment:6
Keshav: on IRC you were worried about a slowdown, since we do potentially run |
comment:7
Oops: found a bug in my patch. This list doesn't work:
because "'int' object is not callable". Improved patch in a moment. |
comment:9
Wow, that's ugly. I didn't even think of that... rerunning doctests just in case. |
comment:10
As for the slowdown, I wasn't really worried, just asking if you thought it was a problem. If you have some doubts about it, by all means, do post to sage-devel :) If so I'll wait before rereviewing this. |
comment:11
Okay, running
So, an order of magnitude slowdown. As suggested by William at https://groups.google.com/d/topic/sage-devel/UiKTG3FkRwY/discussion, the new patch (up shortly) just catches a TypeError, which preserves the current speed for real input and neatly avoids the problem with |
comment:12
Attachment: trac_12035.patch.gz New patch up. Passes doctests, docs build with no warning. Please review. |
comment:13
Whoops, sorry. Positive review. |
Merged: sage-4.8.alpha4 |
If I do
it's totally obvious what I want. We should make
list_plot
accept lists of complex numbers.Component: graphics
Keywords: list_plot, complex
Author: Dan Drake
Reviewer: Keshav Kini
Merged: sage-4.8.alpha4
Issue created by migration from https://trac.sagemath.org/ticket/12035
The text was updated successfully, but these errors were encountered: