#16640: Graphics3d.show abuses graphics_filename
-------------------------------------+-------------------------------------
Reporter: gagern | Owner:
Type: defect | Status: needs_work
Priority: major | Milestone: sage-6.4
Component: graphics | Resolution:
Keywords: | Merged in:
Authors: Martin von Gagern | Reviewers: Jeroen Demeyer
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/ticket/16640 | bd1479d38fe1adb42755ab92499ff8c1ba35592d
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by kcrisman):
> > {{{
> > sage: var('y')
> > y
> > sage: plot3d(x^2+y^3,(x,-1,1),(y,-1,1),filename='foo')
> > sage:
plot3d(x^2+y^3,(x,-1,1),(y,-1,1),filename='foo',viewer='tachyon')
> > }}}
>
> The correct syntax is
> {{{
> sage: plot3d(x^2+y^3,(x,-1,1),(y,-1,1)).show(filename='foo')
> }}}
Good to know. But that sort of proves my point, then, that the
documentation (old and new) doesn't tell me that - in this case, because
so many keywords can be passed to the plot and then show up in `show()`.
Such as what worked in Sage 6.2 and possibly broken by the new display
hook
{{{
sage: var('y')
y
sage: plot3d(x^2+y^3,(x,-1,1),(y,-1,1),viewer='jmol') # jmol applet pops
up
sage: plot3d(x^2+y^3,(x,-1,1),(y,-1,1),viewer='tachyon') # tachyon-
generated png pops up in a viewer
}}}
If you confirm that this does work properly to generate the filenames in
the command line then I'm okay with making sure there are explicit
examples that say it doesn't work from the plot command - preferably in
the plot command docs!
--
Ticket URL: <http://trac.sagemath.org/ticket/16640#comment:24>
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/d/optout.