Thanks, Mathieu, legends will suffice for the time being.<br><br><div class="gmail_quote">On Wed, Nov 24, 2010 at 12:44 PM, Mathieu Dubois <span dir="ltr"><<a href="mailto:mathieu.dubois@limsi.fr">mathieu.dubois@limsi.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">


  

<div bgcolor="#ffffff" text="#000000">
Hello,<div class="im"><br>
<br>
On 11/24/2010 10:20 AM, Ginters Bušs wrote:
<blockquote type="cite">I get it for 2D plots, but for a 3D plot children is
empty. <br>
  <br>
  <div class="gmail_quote">On Wed, Nov 24, 2010 at 10:11 AM, Ginters
Bušs <span dir="ltr"><<a href="mailto:ginters.buss@gmail.com" target="_blank">ginters.buss@gmail.com</a>></span>
wrote:<br>
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Dear
all,<br>
    <br>
I see legend issue comes up from time to time in this list. However, I
still can not make my legend work.<br>
    <br>
Here is my simple graph. I'm drawing 4 surfaces in one graph window:<br>
    <br>
surf(sigmavector,phivector,fsbkcor,'facecol','red')<br>
surf(sigmavector,phivector,abkcor,'facecol','green')<br>
surf(sigmavector,phivector,acfcor,'facecol','yellow')<br>
surf(sigmavector,phivector,fscfcor,'facecol','black')<br>
    <br>
What is the way to add a legend to this graph? All the time I try to
call the legend function, there is an <br>
    <br>
!--error 10000 <br>
legend: No 'Polyline' handle found.<br>
  </blockquote>
  </div>
</blockquote>
<blockquote type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
I understand I have to deal with some 'children', and I will appreciate
an advice here.<br>
  </blockquote>
  </div>
</blockquote></div>
By default legend tries to find polyline(s) i.e. a scatter X-Y line
specified by coordinates of points (probably the most common plot) in
the current figure. This is because legend is made for graph where
there are several of those lines.<br>
surf creates Fac3D objects which specify how to draw a surface. Your
graph is very special and it's a bit hard to figure out of you would
like to use legend. Could you send a complete toy example (e.g. a small
dataset to plot)?<br>
<br>
You can try to use the legends function (note the 's'): it works on
plots created by surf but I'm not sure this is what you want.<div class="im"><br>
<blockquote type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">To
developers: help on 'legend' might be a little bit more
elaborated/explained.<br>
  </blockquote>
  </div>
</blockquote>
<br></div>
HTH,<br>
Mathieu
<blockquote type="cite">
  <div class="gmail_quote">
  <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Sincerely,<br>
    <font color="#888888">Ginters<br>
    </font></blockquote>
  </div>
  <br>
</blockquote>
<br>
</div>

</blockquote></div><br>