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? 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.