[ctioga2] improve handling of multi-column legend position

git-svn-id: svn+ssh://rubyforge.org/var/svn/ctioga2/trunk/ctioga2@382 86c91514-0d3b-42e0-aed1-4dfce116d947