From: Ariel G. <ag...@va...> - 2001-12-17 22:53:56
|
The problem I am currently struggling with is grid/axis drawing when labels are present. In order to draw an effective grid, the highest possible number of labels should be drawn which means that an effective means of word wrapping needs to be present. That is fine and not really hard but the width of the graph depends on the max width of a y labels and the y labels that get printed depend on the height of the x labels. Of course the x labels that get printed and the size constraints on those labels depends on the max width of the y labels so we have a circular problem. At this point, short of checking the size of all incoming labels, I am not sure of a good solution (not to say that checking all of the labels is a good solution :). Anway, I haven't had a lot of time in recent days to work on this so it hasn't really been addressed. My latest change was to split out the grid functions into one that sets up the labels (numeric or string) and sets the padding vars associated with the label sizes and then functions that take those labels and draw the grid. I just haven't gotten the proper wrapping mixed with height padding to work since I don't step through all of the labels yet. Ariel |