<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Dear co-scilabers,<br>
    <br>
    I am wondering about the hidden "uid" property of all graphical
    objects :<br>
    <font size="-1"><tt>--> plot()<br>
        --> gcf().uid<br>
        Â ans  =<br>
        Â Â  581.<br>
      </tt><tt>--> gca().uid</tt><tt><br>
      </tt><tt> ans  =</tt><tt><br>
      </tt><tt>   628.</tt><font face="Courier New, Courier, monospace"
        size="-2"><br>
      </font></font><font face="Arial"><font face="Arial"><font
          face="Courier New, Courier, monospace" size="-2">-->
          gce().uid<br>
          Â ans  =<br>
          Â Â  675.<br>
        </font></font></font><br>
    It is a protected property, and it's OK:<tt><br>
    </tt><tt>--> gca().uid=500</tt><tt><br>
    </tt><tt>
      Unknown property: uid.</tt><tt><br>
    </tt><font face="Arial"><font face="Arial"><br>
      </font></font><b>Question #1</b>: this property is not displayed.
    Is it on purpose?<br>
    <br>
    <b>Question #2</b>: What can we do with this property? In
    particular, can we call directly some java routines with it, and
    then: How (example)?<br>
    <br>
    I was digging around this uid, because i am searching for a robust
    -- and if possible built-in -- way to declare that a graphical
    component relies on another one. Examples :<br>
    <ul>
      <li>a label of a contour line is "ascribed" to this line</li>
      <li>a colorbar (that is an axes in its own) is related to a given
        other axes</li>
      <li>etc.</li>
    </ul>
    <p>Of course, it is possible to use the .tag property of the
      "parent" object (the line, the colored axes,..), and register it
      in the .userdata property of the "child" (the label, the
      colorbar..). And may be i will finally do things in this way.</p>
    <p>But since there is this ".uid" that has the main advantage to be
      unique, with which we are sure that there was no id collision, i
      was wondering about it.<br>
      <br>
      From here to there, i was wondering about the robustness of these
      uid values when saving in a file a figure or a graphical
      component, and then reloading it 2 months later. It comes that 
      .uid values ascribed to the reloaded objects are NOT the original
      ones. So, unfortunately, referring to uid to link objects is not
      robust...</p>
    <p>So, if anyone knows <br>
    </p>
    <ul>
      <li>something about questions #1 and #2</li>
      <li>how to avoid using the .tag to declare robust links between
        graphical objects<br>
      </li>
    </ul>
    Hope reading you.<br>
    <br>
    Best regards<br>
    Samuel<br>
    <p><br>
    </p>
    <font face="Arial"></font>
  </body>
</html>