On Mon, Nov 24, 2008 at 7:47 AM, Chris Fronk <[EMAIL PROTECTED]> wrote:
>
> I'm not sure if this is a bug or just something I'm misunderstanding,
> but for 2D graphics I can write code like this.
>
> g = Graphics()
> g += line( [ [-1,-1], [1,1] ] )
> g.show()
>
> But in 3D if I do either
>
> g = Graphics()
> g += sphere( (1,1,1), 2 )
> g.show()
>
> or
>
> g = sage.plot.plot3d.base.Graphics3dGroup()
> g += sphere( (1,1,1), 2 )
> g.show()
>
> I get the error: ValueError: min() arg is an empty sequence
>
> Is there something I'm missing on how to create a graphics object and
> add 3D graphics to it like the way it's done in 2D?

One thing you can do is just set g = 0 instead, at least as a
temporary workaround.

sage: g = 0
sage: g += sphere((1,1,1),2)
sage: g.show()

Note that addition of 0 and a graphics objects on either side works correctly:

sage: a = g + 0
sage: b = 0 + g
sage: print a
Graphics3d Object
sage: print b
Graphics3d Object

William

ps -- I do agree with Marshall's suggestion in #4604 for consistency
with 2d graphics.

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to