[ENH] improved automatic calculation of image height based upon the number of x,y pairs for the barhoriz option but only works well if a title is not displayed

git-svn-id: file:///var/local/code.tiki.org/tikisvn/trunk@53207 b456876b-0849-0410-b77d-98878d47e9d5