<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">Hello,<br>
      <br>
      Le 25/03/2017 à 09:14, fujimoto2005 a écrit :<br>
    </div>
    <blockquote cite="mid:1490429690297-4035999.post@n3.nabble.com"
      type="cite">
      <pre wrap="">I have 3d-plot with 2 surfaces as an attached file.
I want to improve its appearance.

1, Can I add the legend for each surface as 2d-plot?
Help file tells me 'Legend' is only for 2d-plot and I can't find the same
functionality for 3d-plot.</pre>
    </blockquote>
    I do not see the file attached to your message. It is strange. It is
    only visible in the web archive..<br>
    <br>
    legends are presently possible as well in 3D axes, but anyway only
    for polyline objects,<br>
    not for Fac3D surfaces.<br>
    Datatips are nor supported on surfaces.<br>
    The only possible trick that i could see is to define a polygon
    filled with the color of the surface,<br>
    made invisible, from which a legend() is built:<br>
    <br>
    clf<br>
    surf()<br>
    e = gce();<br>
    e.color_flag = 0;<br>
    cyan = color("cyan");<br>
    e.color_mode = cyan;<br>
    xpoly(5,5,"marks")<br>
    p = gce();<br>
    p.fill_mode = "on";<br>
    p.background = e.color_mode;<br>
    p.visible = "off";<br>
    legend(p, "Surface 1")<br>
    <br>
    // If the surface has some marks on its nodes, and we want them in
    the legend style:<br>
    p.mark_mode = "on";<br>
    p.mark_style = e.mark_style;<br>
    p.mark_foreground = e.mark_foreground;<br>
    p.mark_background = e.mark_background;<br>
    <br>
    <img src="cid:part1.B73F837A.3F27804A@free.fr" alt="" height="285"
      width="351"><br>
    For several surfaces, just generate one invisible polygon matching
    their styles per surface, and provide to legend() a vector of their
    handles.<br>
    <br>
    HTH<br>
    Samuel<br>
    <br>
    <br>
  </body>
</html>