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
3d graphics can't be saved to a file #2872
Comments
comment:1
Another nice description of the problem by Jason Grout:
|
comment:2
The attached patch implements this feature as described. When a filename ending in an image format extension is passed to save (several formats are supported through PIL), Tachyon is used to render the Graphics3d. I had to factor some code out of show() into _process_viewing_options(), but hopefully that won't break anything (and I think it makes show() much cleaner). I think this is ready for review. |
Author: Bill Cauchois |
comment:3
Works perfectly, but it may be worth adding a short docstring for |
Reviewer: Tim Dumol |
Attachment: trac_2872.patch.gz based on sage 4.3.1.rc0 |
Changed reviewer from Tim Dumol to Tim Dumol, Robert Bradshaw |
comment:5
Nice. Followup patch looks good and works great for me. |
comment:6
Trivial failure in sage/plot/plot3d/base.pyx
|
comment:7
Replying to @robertwb:
This doctest failure has been in base.pyx for a long time. I fixed it in #7985. It is not related to the changes in this ticket. Thanks for being a thorough reviewer :). |
comment:8
It passes for me in sage-4.3.rc1. I'm putting this back to positive review. |
comment:10
Applied to 4.3.2, the patch yields
|
comment:11
This is on sage.math. The patch queue:
|
Work Issues: 1 doctest |
comment:12
Replying to @qed777:
I don't get it, wasn't #7985 merged? I get no such doctest failure with Sage 4.3.1, which I downloaded from the website. |
comment:13
The "new" failure seems to be in a different place (line 1395 vs. 758). |
comment:14
Replying to @qed777:
I see. So there's another nefarious texture_set() doctest that isn't consistent across runs. I'll open a ticket and fix this one too. |
comment:15
If the fix is similar to that at #7985, feel free to add the patch here and add a comment requesting a review. |
comment:16
Replying to @qed777:
Hmm... that's a good idea. But its too late. I already wasted one of our precious ticket numbers on this tiny tiny patch... see #8235. Do you think you could review it real quick? |
This comment has been minimized.
This comment has been minimized.
Changed work issues from 1 doctest to none |
Merged: sage-4.3.3.alpha0 |
The bug is described below. To fix this and close this ticket, just slightly refactor the code in sage/sage/plot/plot3d/base.pyx so that save to png on a 3d image saves the tachyon rendered file, gives an sobj on an sobj or no extension, and gives an error on all other extension. This will be all one gets initially.
Another later ticket should -- if possible -- make it possible to get the static image from jmol (if possible).
Depends on #8235.
Component: graphics
Author: Bill Cauchois
Reviewer: Tim Dumol, Robert Bradshaw
Merged: sage-4.3.3.alpha0
Issue created by migration from https://trac.sagemath.org/ticket/2872
The text was updated successfully, but these errors were encountered: