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
vector plot should have optional "start" argument #9962
Comments
comment:1
I think "start=list/tuple/vector" is the best convention for this option. |
tentative patch |
comment:2
Attachment: trac_9962_start_vector.patch.gz the patch gives the described output, but someone should double check my code for correctness. |
comment:3
Replying to @sagetrac-ryan:
It looks good to me. |
Author: Ryan Grout |
Reviewer: Aly Deines |
updated patch |
comment:5
Attachment: trac_9962_vector_start.patch.gz |
updated patch + doctests |
comment:6
Attachment: trac_9962_vector_start.2.patch.gz updated patch: Included error handling for some cases where the two coordinates are not of the same dimension. Also, added doctests. Much cleaner patch. I appreciate the suggestions for making this patch better. |
comment:8
Replying to @kcrisman: |
comment:9
Please make it clear which patches have to be applied. |
comment:11
You may want to check whether this really does the same thing as |
comment:13
No, it's neither positive review nor needs work. I haven't had the time to review this, but any reviewer should be sure to check this out. That's all I am saying. |
Changed reviewer from Aly Deines to Aly Deines, Karl-Dieter Crisman |
comment:14
This patch causes an amusing error, which does not occur in the vanilla Sage:
I think I can fix this, so patch hopefully coming up. |
comment:15
I think I have it fixed. However, the bizarre error messages remain for one-dimensional arrows, so I have created followup ticket #10925 for that. |
Attachment: trac_9962-reviewer.patch.gz Apply after vector_start.2 patch |
Changed author from Ryan Grout to Ryan Grout, Karl-Dieter Crisman |
comment:16
Okay, positive review on this nice addition from the original patch. The reviewer patch still needs review; it fixes the problem by extending the one-dimensional start as well, and adds/spruces up some documentation. Reviewer should check things work, doctests, and that documentation looks ok. |
This comment has been minimized.
This comment has been minimized.
comment:17
Ryan, you can totally review the reviewer patch. Just check that it still does what you wanted, that the doctests are correct and pass, and that |
comment:18
Replying to @kcrisman:
I'll look at it this evening. |
comment:19
everything looks good here. I'm going to go ahead an change this to positive review for the reviewer patch. |
Merged: sage-4.7.1.alpha2 |
It would be really nice if this plotted an arrow from (1,2) to (3,4):
or maybe the option should be "base" or "origin"
To fix this, just change the plot method in
devel/sage/sage/modules/free_module_element.pyx
Apply attachment: trac_9962_vector_start.2.patch and attachment: trac_9962-reviewer.patch
CC: @sagetrac-ryan @kcrisman
Component: graphics
Author: Ryan Grout, Karl-Dieter Crisman
Reviewer: Aly Deines, Karl-Dieter Crisman
Merged: sage-4.7.1.alpha2
Issue created by migration from https://trac.sagemath.org/ticket/9962
The text was updated successfully, but these errors were encountered: