Re: [sage-support] legends for 3d graphics
On Sat, Jul 27, 2013 at 8:57 PM, Jason Grout wrote: > On 7/25/13 10:58 AM, William Stein wrote: >> >> On Thu, Jul 25, 2013 at 9:16 AM, davidp 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) >>> >>> --- >>> AttributeErrorTraceback (most recent call >>> last) >>> in () >>> > 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. >> > > I'm curious: is his code being pushed out somewhere public? Not right now. He basically figures out how to do something, then I add it to cloud.sagemath... William > > Jason > > > > > -- > 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. > > -- 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.
Re: [sage-support] legends for 3d graphics
On 7/25/13 10:58 AM, William Stein wrote: On Thu, Jul 25, 2013 at 9:16 AM, davidp 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) --- AttributeErrorTraceback (most recent call last) in () > 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. I'm curious: is his code being pushed out somewhere public? Jason -- 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.
Re: [sage-support] legends for 3d graphics
Cool! On Thursday, July 25, 2013 10:58:56 AM UTC-7, William wrote: > > On Thu, Jul 25, 2013 at 9:16 AM, davidp > > 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) > > > --- > > AttributeErrorTraceback (most recent call > last) > > in () > > > 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 . > > To post to this group, send email to > > sage-s...@googlegroups.com. > > > 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.
Re: [sage-support] legends for 3d graphics
On Thu, Jul 25, 2013 at 9:16 AM, davidp 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) > --- > AttributeErrorTraceback (most recent call last) > in () > > 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+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. > > -- 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.
[sage-support] legends for 3d graphics
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) --- AttributeErrorTraceback (most recent call last) in () > 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? 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+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.