|
From: Ethan M. <merritt@u.washington.edu> - 2005-06-30 19:12:59
|
I think this is almost ready for inclusion, barring some extraneous messages from time-travellers like the one below: +#if 0 /* 29jul2005 Seems like outdated cruft. Keybox computations are done later. */ + /* we divide into columns, then centre in column by + * considering ratio of * key_left_size to + * key_right_size + * + * key_size_left/(key_size_left+key_size_right) * + * (xright-xleft)/key_cols do one integer division to + * maximise accuracy (hope we don't overflow !) + */ + keybox.xl = xleft - key_size_left + + ((xright - xleft) * key_size_left) + / (key_cols * (key_size_left + key_size_right)); + keybox.xr = keybox.xl + key_col_wth * (key_cols - 1) + + key_size_left + key_size_right; + keybox.yb = t->ymax * yoffset; + keybox.yt = keybox.yb + key_rows * key_entry_height + + ktitl_lines * t->v_char; + keybox.yt += (int) (key->height_fix * t->v_char); +#endif The only other glitch I notice is that the default placement of "set key below" seems to have changed from "below center" to "below right". E.g. set key below plot sin(x) now places the key at the bottom right corner of the page, rather than centering it under the plot. Please fix that, because I'm sure this will be triggered by a *lot* of existing scripts. -- Ethan A Merritt merritt@u.washington.edu Biomolecular Structure Center Mailstop 357742 University of Washington, Seattle, WA 98195 |