From: Daniel J S. <dan...@ie...> - 2004-07-29 09:11:49
|
I've cleaned up some of the layout code motivated by better control of key placement. It wasn't too bad. Basically, it was the layout and positioning of the key that was a hodge-podge of case statements here and there. After organizing some things a bit more, there seems to have been a few bits of cruft in there. (I.e., code setting variables that weren't used before being set to something else.) I think it is a good start and you will probably like it. With left, right, center, top, bottom one can choose one of 9 automatic locations either inside or outside of the graph boundary. The words "outside" and "under" aren't quite backward compatible, but they are very close to compatible. The <position> has been enhanced in that 'left', 'right', 'center', 'bottom', 'top' control the alignment with respect to the point. (Think of the key as a gnuplot label.) However, issuing one of those position keywords without the <position> will cause the key to go back to automatic mode. (Again, darn near backward compatible.) The mods only apply for 2d plots. 3d plot key layout should be discussed before making any changes. There is some command-line documentation. There is a demo called 'key.dem' which will immediately give you the idea of how auto/manual positioning works. The patches are on SourceForge. If you want to try, the order of patch application would be: key_28jul2004.patch (cleaner enumerations but unaltered gnuplot behavior) with_image_29jul2004.patch add_key_29jul2004.patch Fair warning: Don't take this as too crass, but I won't be updating these patches anymore beyond the near future. Dan |