Cool!

On Thursday, July 25, 2013 10:58:56 AM UTC-7, William wrote:
>
> On Thu, Jul 25, 2013 at 9:16 AM, davidp <davi...@gmail.com <javascript:>> 
> wrote: 
> > I am using Sage to plot an arrangement of planes in 3-space.  Each plane 
> has 
> > its own color, and I would like a legend in the plot that associates the 
> > equation of each plane with its color.  This experiment seems to 
> indicate 
> > that legends are not available for 3d graphics: 
> > 
> > 
> --------------------------------------------------------------------------- 
> > sage: p = plot3d(x^2,(x,-1,1),(y,-1,1),legend_label='0') 
> > sage: q = plot3d(x^2+y^2,(x,-1,1),(y,-1,1),legend_label='1') 
> > sage: c = p+q 
> > sage: c.legend(true) 
> > 
> --------------------------------------------------------------------------- 
> > AttributeError                            Traceback (most recent call 
> last) 
> > <ipython-input-28-744abb0d6c3b> in <module>() 
> > ----> 1 c.legend(true) 
> > 
> > AttributeError: 'Graphics3dGroup' object has no attribute 'legend' 
> > 
> --------------------------------------------------------------------------- 
> > 
> > As I rotate the 3d-object, I would like for the legend would stay in one 
> > place. 
> > 
> > Any suggestions? 
>
> This won't help you today, but an REU student -- Renford Alexander -- 
> is working fulltime right now on Three.js-based 3d graphics rendering 
> for https://cloud.sagemath.com.  He showed me some demos yesterday of 
> drawing text in 3d, the looked pretty useful.  In particular, he draws 
> arbitrary text on a 2d html5 canvas, then puts the canvas element in 
> the 3d scenes as a "sprite".    This functionality should come to 
> https://cloud.sagemath.com within a month, hopefully. 
>
>  -- William 
>
> > 
> > Thanks. 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups 
> > "sage-support" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an 
> > email to sage-support...@googlegroups.com <javascript:>. 
> > To post to this group, send email to 
> > sage-s...@googlegroups.com<javascript:>. 
>
> > Visit this group at http://groups.google.com/group/sage-support. 
> > For more options, visit https://groups.google.com/groups/opt_out. 
> > 
> > 
>
>
>
> -- 
> William Stein 
> Professor of Mathematics 
> University of Washington 
> http://wstein.org 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to