<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; "><BR><DIV><DIV>On Jul 9, 2007, at 12:10 PM, Vincent Fourmond wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite"><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">the best solution would be to be able to pass a 'block' to the</FONT></P> <P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT face="Helvetica" size="3" style="font: 12.0px Helvetica">function</FONT></P> </BLOCKQUOTE></DIV><BR><DIV>Hi,</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I like the idea of providing a call-back routine for this, but perhaps</DIV><DIV>it would be even better to do it at the level of the entire set of labels</DIV><DIV>for an axis rather than for individual labels. </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Currently, you get the choice of either doing the whole thing yourself</DIV><DIV>(by supplying arrays of locations and labels) or attempting to get</DIV><DIV>tioga to do what you want using a bunch of not-so-lovely controls</DIV><DIV>(such as number of decimal digits, digits max, or tex formatting).</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I think we need an intermediate alternative: caller provides a</DIV><DIV>call-back function that gets a list of proposed locations for</DIV><DIV>major ticks and returns 2 lists: one the actual locations to be </DIV><DIV>used for major ticks and the other the strings giving the corresponding</DIV><DIV>labels (which can of course be null strings to leave a tick unlabeled).</DIV><DIV>These arrays obviously correspond to the arrays of the current</DIV><DIV>"do-it-yourself" option mentioned above, but now extended so that</DIV><DIV>the system provides you with candidate locations based on its</DIV><DIV>initial calculations of axis sizes.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Incidentally, this also has the benefit of letting the user decide what to do about</DIV><DIV>cases where a major tick falls at the corner of a plot. Tioga currently</DIV><DIV>makes an attempt to deal with this, but it would be great to have a</DIV><DIV>way to override it.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Comments?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>--Bill</DIV><DIV><BR class="khtml-block-placeholder"></DIV></BODY></HTML>