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
plot.py improvements part 1: Remove all factories #3853
Comments
Attachment: trac_3853.patch.gz |
Changed keywords from none to jason |
Changed keywords from jason to none |
apply instead of trac_3853.patch |
comment:5
Attachment: trac_3853-rebased-3.1.1-trac_3880.patch.gz Extra things this patch does:
|
comment:6
well, that coerce comment should really be: I changed this to use numpy in one case; the case where we need to separate the x-values and y-values still coerces to float no matter what. I guess the "line" function, a user-visible function, shouldn't have a coerce=False option; it's too unsafe. |
comment:7
I take that back; I took back out the numpy stuff; we should just make a general cython function that ensures that a list is coerced to float. |
comment:8
That last patch also streamlines a few things and makes a few things more consistent. |
comment:9
Despite the name trac_3880 in the referee patch, it really is the referee patch for this ticket! |
comment:10
referee patch updated to correct documentation and doctests, plus simplify code in xydata... function. |
comment:11
plus throw some errors when trying to do line() or text() and get back a 3d object. |
comment:12
there are still some doctest errors from the referee patch |
comment:13
Attachment: trac_3880-referee.patch.gz updated referee patch to fix some more things. |
comment:14
Positive review for the initial part (mhansen's part). The referee patch adds enough functionality that it probably ought to be reviewed as well. So, apply trac_3853-rebased-3.1.1-trac_3880.patch and then the referee patch to review/merge this ticket. |
comment:15
I think now there is one doctest in plot.py that gives a weird error (it's a doctesting error, not a sage error, I think). |
comment:16
Apply trac_3853-rebased-3.1.1-trac_3880.patch in order. |
comment:17
There was a thread about the proposed new behavior of line: line([(0,0,0),(1,1,1)]) no longer produces a 3d line, but a 2d line from the first 2 coordinates. Use line3d to get a 3d line. http://groups.google.com/group/sage-devel/browse_thread/thread/6f4b382145c09546 All the comments were negative. That needs to be addressed, right? I suspect I may be overstepping my bounds by changing this from positive review to needs work--if so, I'll accept an appropriate wrist slapping. |
comment:18
Attachment: trac_3853-fixes.2.patch.gz |
comment:19
This looks good to me, it restores the old behavior. If something else is desired it should be dealt with via a new ticket since this code should go in and would bitrot quickly. Cheers, Michael |
comment:20
Merged trac_3853-rebased-3.1.1-trac_3880.patch, trac_3880-referee.patch and trac_3853-fixes.2.patch in Sage 3.1.2.alpha1 |
I replaced all of the factories with individual functions.
CC: @sagetrac-anakha @jasongrout
Component: graphics
Issue created by migration from https://trac.sagemath.org/ticket/3853
The text was updated successfully, but these errors were encountered: