#15729: Graphics3d with fractional opacity will not save image
------------------------+----------------------------
Reporter: niles | Owner:
Type: defect | Status: new
Priority: major | Milestone: sage-6.1
Component: graphics | Keywords:
Merged in: | Authors:
Reviewers: | Report Upstream: N/A
Work issues: | Branch:
Commit: | Dependencies:
Stopgaps: |
------------------------+----------------------------
Giving opacity as a fraction breaks the save method. No error is raised
and no image is created.
{{{
plot3d(lambda x, y: x^2 + y^2, (-2,2),
(-2,2),opacity=8/10).save('~/tmp.png')
}}}
This appears to be a problem with tachyon not handling fractions. Here is
another example with an error message (shown with the keyword
`verbosity=2`):
{{{
sage: S = sphere(opacity=8/10, aspect_ratio=[1,1,1], verbosity='2')
sage: S.save('~/tmp.png')
}}}
{{{
tachyon /Users/njohnson/.sage/temp/galileo/2623/tmp_zkpq5K.dat -format
PNG -o ~/tmp.png -res 500 500 +V ; rm -f
"/Users/njohnson/.sage/temp/galileo/2623/tmp_zkpq5K.dat"
Tachyon Parallel/Multiprocessor Ray Tracer Version 0.98.9
Copyright 1994-2010, John E. Stone <[email protected]>
------------------------------------------------------------
Parse Error:
Encountered a syntax error in file
/Users/njohnson/.sage/temp/galileo/2623/tmp_zkpq5K.dat
Expected to find TEXFUNC
Actually found: Color
Error occured at or prior to file offset 656, line 29
Error position is only approximate, but should be close
Parse Error:
Encountered a syntax error in file
/Users/njohnson/.sage/temp/galileo/2623/tmp_zkpq5K.dat
Expected to find an object or other declaration
Actually found: .4
Error occured at or prior to file offset 660, line 29
Error position is only approximate, but should be close
Parser failed due to an input file syntax error.
Aborting render.
}}}
Changing opacity to .8 in this example works as expected.
--
Ticket URL: <http://trac.sagemath.org/ticket/15729>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.