From: Ethan A M. <merritt@u.washington.edu> - 2004-07-03 22:41:57
|
On Saturday 03 July 2004 07:24 am, Harald Harders wrote: > The main questions are: > - Which kind of interface do you think is best, and shall all kinds of > text output have the `offset' functionality? I think it can be applied to all text entries. The most annoying thing, as you already noted, is backwards compatibility with commands that provide an offset with no key word. > - How shall this new function be implemented? Which function and which > struct are to be extended? Both the label_struct and text_label structures already contain x and y offsets as type (double). I propose that all text entities in gnuplot can be moved into one of these two structures if they are not already stored that way. In fact, a while ago I looked at consolidating these into a single structure; at the time it didn't seem worth it, but we could revisit that idea. However if you want to allow different types of offsets ("graph", "plot", "character", etc) then an additional structure member is needed to hold this. -- Ethan A Merritt Department of Biochemistry & Biomolecular Structure Center University of Washington, Seattle |