Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Legend plotyy #773
@okomarov : I think "but some hash of the handle?" in your OP would be a source of randomness, which our hash-based testing could struggle with. An (ugly) but deterministic alternative would be to have a global counter for that. The other thing I can think of, is to make a string that represents where the referenced object lives in the HG object tree (i.e. figure), so e.g.
@okomarov The problem with that is that we don't know the algorithm that MATLAB/Octave use to determine the handle number. As such, the LaTeX output might differ depending on:
and that will cause all test hashes to become unreliable.
The easiest way is to introduce a global counter in
edit Now that I think of it, that might require a two-pass handling. It might require us to know the ID (whatever name we give the label) even before the corresponding element has been produced in the output. I actually have no idea how
edit 2 Another problem I anticipate: the namespace of
I think it might be easier to introduce it similar to the other global counters: just initialize it to 0 at the beginning.
Also, I think this should not be a property of