<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><br>
    ---------- Bug Summary ----------- <br>Saved datatips cannot be restored correctly after reloading a diagram <br><br>
    <br>
      <p>
        <div>

            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Saved datatips cannot be restored correctly after reloading a diagram"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15465#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Saved datatips cannot be restored correctly after reloading a diagram"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15465">bug 15465</a>
              from <span class="vcard"><a class="email" href="mailto:sgougeon@free.fr" title="Samuel GOUGEON <sgougeon@free.fr>"> <span class="fn">Samuel GOUGEON</span></a>
</span></b>
        <pre>The problem is not that data are rounded: They are not (see example below).
But that only the INDEX of the nearest flooring point is SAVED, and so then restored.
In the saved file, "data_index" is saved, instead of "data".

f = scf(0);
clf
xy = 0.5+(1:10);
plot(xy, xy, "-*")
c = gce().children;
d = datatipCreate(c,[5.3 5.3]);

xsave(TMPDIR+"/bug_15465.scg",0);
xdel(0);
xload(TMPDIR+"/bug_15465.scg",0);

d = gca().children.children.datatips
d.data

--> d.data
 ans  =
   4.5   4.5   0.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>