On Sat, Jul 27, 2013 at 8:57 PM, Jason Grout
<jason-s...@creativetrax.com> wrote:
> On 7/25/13 10:58 AM, William Stein wrote:
>>
>> On Thu, Jul 25, 2013 at 9:16 AM, davidp <davide...@gmail.com> 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.
>>
>
> 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.


Reply via email to